Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
fa613fa1
Commit
fa613fa1
authored
23 years ago
by
Tom Lane
Browse files
Options
Downloads
Patches
Plain Diff
Fix obsolete statement about permissions on COPY ref page, and confusion
about TO/FROM direction in several places.
parent
cbd3b97e
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
doc/src/sgml/ref/copy.sgml
+12
-10
12 additions, 10 deletions
doc/src/sgml/ref/copy.sgml
doc/src/sgml/ref/grant.sgml
+3
-3
3 additions, 3 deletions
doc/src/sgml/ref/grant.sgml
with
15 additions
and
13 deletions
doc/src/sgml/ref/copy.sgml
+
12
−
10
View file @
fa613fa1
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/ref/copy.sgml,v 1.3
0
2002/0
4/23 02:07:15
tgl Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/ref/copy.sgml,v 1.3
1
2002/0
5/14 18:47:58
tgl Exp $
PostgreSQL documentation
-->
...
...
@@ -175,8 +175,10 @@ ERROR: <replaceable>reason</replaceable>
<productname>PostgreSQL</productname> tables and
standard file-system files.
<command>COPY TO</command> copies the entire contents of a table to
a file, while <command>COPY FROM</command> copies data from a file to a
<command>COPY TO</command> copies the entire contents of a table
<emphasis>to</>
a file, while <command>COPY FROM</command> copies data <emphasis>from</> a
file to a
table (appending the data to whatever is in the table already).
</para>
...
...
@@ -230,26 +232,26 @@ ERROR: <replaceable>reason</replaceable>
</para>
<para>
You must have <firstterm>select
access
</firstterm> on any table
You must have <firstterm>select
privilege
</firstterm> on any table
whose values are read by
<command>COPY</command>, and
either
<firstterm>insert
</firstterm> or <firstterm>update access
</firstterm>
t
o a
table into which values are being inserted by <command>COPY</command>.
<command>COPY
TO
</command>, and
<firstterm>insert
privilege
</firstterm> o
n
a
table into which values are being inserted by <command>COPY
FROM
</command>.
The backend also needs appropriate Unix permissions for any file read
or written by <command>COPY</command>.
</para>
<para>
<command>COPY
TO
</command> neither invokes rules nor acts on column
<command>COPY
FROM
</command> neither invokes rules nor acts on column
defaults. It does invoke triggers and check constraints.
</para>
<para>
<command>COPY</command> stops operation at the first error. This
should not lead to problems in the event of
a <command>COPY
FROM
</command>, but the
a <command>COPY
TO
</command>, but the
target relation will already have received earlier rows in a
<command>COPY
TO
</command>. These rows will not be visible or
<command>COPY
FROM
</command>. 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
...
...
This diff is collapsed.
Click to expand it.
doc/src/sgml/ref/grant.sgml
+
3
−
3
View file @
fa613fa1
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/ref/grant.sgml,v 1.2
5
2002/0
4/30 01:26:25
tgl Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/ref/grant.sgml,v 1.2
6
2002/0
5/14 18:47:58
tgl Exp $
PostgreSQL documentation
-->
...
...
@@ -83,7 +83,7 @@ GRANT { { CREATE | USAGE } [,...] | ALL [ PRIVILEGES ] }
<para>
Allows <xref linkend="sql-select" endterm="sql-select-title"> from any column of the
specified table, view, or sequence. Also allows the use of
<xref linkend="sql-copy" endterm="sql-copy-title">
FROM
.
<xref linkend="sql-copy" endterm="sql-copy-title">
TO
.
</para>
</listitem>
</varlistentry>
...
...
@@ -93,7 +93,7 @@ GRANT { { CREATE | USAGE } [,...] | ALL [ PRIVILEGES ] }
<listitem>
<para>
Allows <xref linkend="sql-insert" endterm="sql-insert-title"> of a new row into the
specified table. Also allows <xref linkend="sql-copy" endterm="sql-copy-title">
TO
.
specified table. Also allows <xref linkend="sql-copy" endterm="sql-copy-title">
FROM
.
</para>
</listitem>
</varlistentry>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment