Fix obsolete statement about permissions on COPY ref page, and confusion
authorTom Lane
Tue, 14 May 2002 18:47:58 +0000 (18:47 +0000)
committerTom Lane
Tue, 14 May 2002 18:47:58 +0000 (18:47 +0000)
about TO/FROM direction in several places.

doc/src/sgml/ref/copy.sgml
doc/src/sgml/ref/grant.sgml

index 95958e958078df6b20d59115a35ecbcaf5cc27b3..33454dbd4a6a6157c4ddd4df774bad92dc483e05 100644 (file)
@@ -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
index 226db71d6838c99747760bc80254cca291a61353..a1384409cf3b521d00a4ecbb6b3384e95c8edf47 100644 (file)
@@ -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.