Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfa613fa

Browse files
committed
Fix obsolete statement about permissions on COPY ref page, and confusion
about TO/FROM direction in several places.
1 parentcbd3b97 commitfa613fa

File tree

2 files changed

+15
-13
lines changed

2 files changed

+15
-13
lines changed

‎doc/src/sgml/ref/copy.sgml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/ref/copy.sgml,v 1.30 2002/04/23 02:07:15 tgl Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/ref/copy.sgml,v 1.31 2002/05/14 18:47:58 tgl Exp $
33
PostgreSQL documentation
44
-->
55

@@ -175,8 +175,10 @@ ERROR: <replaceable>reason</replaceable>
175175
<productname>PostgreSQL</productname> tables and
176176
standard file-system files.
177177

178-
<command>COPY TO</command> copies the entire contents of a table to
179-
a file, while <command>COPY FROM</command> copies data from a file to a
178+
<command>COPY TO</command> copies the entire contents of a table
179+
<emphasis>to</>
180+
a file, while <command>COPY FROM</command> copies data <emphasis>from</> a
181+
file to a
180182
table (appending the data to whatever is in the table already).
181183
</para>
182184

@@ -230,26 +232,26 @@ ERROR: <replaceable>reason</replaceable>
230232
</para>
231233

232234
<para>
233-
You must have <firstterm>selectaccess</firstterm> on any table
235+
You must have <firstterm>selectprivilege</firstterm> on any table
234236
whose values are read by
235-
<command>COPY</command>, and either
236-
<firstterm>insert</firstterm> or <firstterm>update access</firstterm>to a
237-
table into which values are being inserted by <command>COPY</command>.
237+
<command>COPY TO</command>, and
238+
<firstterm>insert privilege</firstterm>on a
239+
table into which values are being inserted by <command>COPY FROM</command>.
238240
The backend also needs appropriate Unix permissions for any file read
239241
or written by <command>COPY</command>.
240242
</para>
241243

242244
<para>
243-
<command>COPYTO</command> neither invokes rules nor acts on column
245+
<command>COPYFROM</command> neither invokes rules nor acts on column
244246
defaults. It does invoke triggers and check constraints.
245247
</para>
246248

247249
<para>
248250
<command>COPY</command> stops operation at the first error. This
249251
should not lead to problems in the event of
250-
a <command>COPYFROM</command>, but the
252+
a <command>COPYTO</command>, but the
251253
target relation will already have received earlier rows in a
252-
<command>COPYTO</command>. These rows will not be visible or
254+
<command>COPYFROM</command>. These rows will not be visible or
253255
accessible, but they still occupy disk space. This may amount to a
254256
considerable amount
255257
of wasted disk space if the failure happened well into a large copy

‎doc/src/sgml/ref/grant.sgml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/ref/grant.sgml,v 1.25 2002/04/30 01:26:25 tgl Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/ref/grant.sgml,v 1.26 2002/05/14 18:47:58 tgl Exp $
33
PostgreSQL documentation
44
-->
55

@@ -83,7 +83,7 @@ GRANT { { CREATE | USAGE } [,...] | ALL [ PRIVILEGES ] }
8383
<para>
8484
Allows <xref linkend="sql-select" endterm="sql-select-title"> from any column of the
8585
specified table, view, or sequence. Also allows the use of
86-
<xref linkend="sql-copy" endterm="sql-copy-title">FROM.
86+
<xref linkend="sql-copy" endterm="sql-copy-title">TO.
8787
</para>
8888
</listitem>
8989
</varlistentry>
@@ -93,7 +93,7 @@ GRANT { { CREATE | USAGE } [,...] | ALL [ PRIVILEGES ] }
9393
<listitem>
9494
<para>
9595
Allows <xref linkend="sql-insert" endterm="sql-insert-title"> of a new row into the
96-
specified table. Also allows <xref linkend="sql-copy" endterm="sql-copy-title">TO.
96+
specified table. Also allows <xref linkend="sql-copy" endterm="sql-copy-title">FROM.
9797
</para>
9898
</listitem>
9999
</varlistentry>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp