From: Tom Lane Date: Tue, 14 May 2002 18:47:58 +0000 (+0000) Subject: Fix obsolete statement about permissions on COPY ref page, and confusion X-Git-Tag: REL7_3~1529 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fa613fa1eafd8fd80272a31e8477ad9368c95dbb;p=postgresql Fix obsolete statement about permissions on COPY ref page, and confusion about TO/FROM direction in several places. --- diff --git a/doc/src/sgml/ref/copy.sgml b/doc/src/sgml/ref/copy.sgml index 95958e9580..33454dbd4a 100644 --- a/doc/src/sgml/ref/copy.sgml +++ b/doc/src/sgml/ref/copy.sgml @@ -1,5 +1,5 @@ @@ -175,8 +175,10 @@ ERROR: reason PostgreSQL tables and standard file-system files. - COPY TO copies the entire contents of a table to - a file, while COPY FROM copies data from a file to a + COPY TO copies the entire contents of a table + to + a file, while COPY FROM copies data from a + file to a table (appending the data to whatever is in the table already). @@ -230,26 +232,26 @@ ERROR: reason - You must have select access on any table + You must have select privilege on any table whose values are read by - COPY, and either - insert or update access to a - table into which values are being inserted by COPY. + COPY TO, and + insert privilege on a + table into which values are being inserted by COPY FROM. The backend also needs appropriate Unix permissions for any file read or written by COPY. - COPY TO neither invokes rules nor acts on column + COPY FROM neither invokes rules nor acts on column defaults. It does invoke triggers and check constraints. COPY stops operation at the first error. This should not lead to problems in the event of - a COPY FROM, but the + a COPY TO, but the target relation will already have received earlier rows in a - COPY TO. These rows will not be visible or + COPY FROM. These rows will not be visible or accessible, but they still occupy disk space. This may amount to a considerable amount of wasted disk space if the failure happened well into a large copy diff --git a/doc/src/sgml/ref/grant.sgml b/doc/src/sgml/ref/grant.sgml index 226db71d68..a1384409cf 100644 --- a/doc/src/sgml/ref/grant.sgml +++ b/doc/src/sgml/ref/grant.sgml @@ -1,5 +1,5 @@ @@ -83,7 +83,7 @@ GRANT { { CREATE | USAGE } [,...] | ALL [ PRIVILEGES ] } Allows from any column of the specified table, view, or sequence. Also allows the use of - FROM. + TO. @@ -93,7 +93,7 @@ GRANT { { CREATE | USAGE } [,...] | ALL [ PRIVILEGES ] } Allows of a new row into the - specified table. Also allows TO. + specified table. Also allows FROM.