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

Commit580d8ac

Browse files
committed
doc: Fix description of \copy for psql
The WHERE clause introduced by31f3817 was not described. While on it,split the grammar of \copy FROM and TO into two distinct parts forclarity as they support different set of options.Author: Vignesh CDiscussion:https://postgr.es/m/CALDaNm3zWr=OmxeNqOqfT=uZTSdam_j-gkX94CL8eTNfgUtf6A@mail.gmail.comBackpatch-through: 12
1 parent71e8e66 commit580d8ac

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

‎doc/src/sgml/ref/psql-ref.sgml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -982,9 +982,15 @@ testdb=>
982982
</varlistentry>
983983

984984
<varlistentry id="app-psql-meta-commands-copy">
985+
<term><literal>\copy { <replaceable class="parameter">table</replaceable> [ ( <replaceable class="parameter">column_list</replaceable> ) ] }
986+
<literal>from</literal>
987+
{ <replaceable class="parameter">'filename'</replaceable> | program <replaceable class="parameter">'command'</replaceable> | stdin | pstdin }
988+
[ [ with ] ( <replaceable class="parameter">option</replaceable> [, ...] ) ]
989+
[ where <replaceable class="parameter">condition</replaceable> ]</literal></term>
990+
985991
<term><literal>\copy { <replaceable class="parameter">table</replaceable> [ ( <replaceable class="parameter">column_list</replaceable> ) ] | ( <replaceable class="parameter">query</replaceable> ) }
986-
{<literal>from</literal> | <literal>to</literal> }
987-
{ <replaceable class="parameter">'filename'</replaceable> | program <replaceable class="parameter">'command'</replaceable> |stdin |stdout | pstdin | pstdout }
992+
<literal>to</literal>
993+
{ <replaceable class="parameter">'filename'</replaceable> | program <replaceable class="parameter">'command'</replaceable> | stdout | pstdout }
988994
[ [ with ] ( <replaceable class="parameter">option</replaceable> [, ...] ) ]</literal></term>
989995

990996
<listitem>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp