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

Commit4cab43e

Browse files
committed
docs: clarify handling of column lists in COPY TO/FROM
Previously it was unclear how COPY FROM handled cases where not allcolumns were specified, or if the order didn't match.Reported-by: pavlo.golub@gmail.comDiscussion:https://postgr.es/m/157487729344.7213.14245726713444755296@wrigleys.postgresql.orgBackpatch-through: 9.4
1 parent0af0504 commit4cab43e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@ COPY { <replaceable class="parameter">table_name</replaceable> [ ( <replaceable
6161
</para>
6262

6363
<para>
64-
If a listof columnsis specified, <command>COPY</command>will
65-
only copythe data in the specified columns toor fromthe file.
66-
If there are any columnsin thetable that are notinthe column list,
67-
<command>COPY FROM</command> will insert the default values for
68-
those columns.
64+
If acolumnlist is specified, <command>COPY TO</command>copies only
65+
the data in the specified columns to the file. For <command>COPY
66+
FROM</command>, each fieldin thefile is inserted,inorder, into the
67+
specified column. Table columns not specified in the <command>COPY
68+
FROM</command> column list will receive their default values.
6969
</para>
7070

7171
<para>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp