mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-10-04 17:06:52 +02:00
doc: Fix description of \copy for psql
The WHERE clause introduced by 31f3817
was not described. While on it,
split the grammar of \copy FROM and TO into two distinct parts for
clarity as they support different set of options.
Author: Vignesh C
Discussion: https://postgr.es/m/CALDaNm3zWr=OmxeNqOqfT=uZTSdam_j-gkX94CL8eTNfgUtf6A@mail.gmail.com
Backpatch-through: 12
This commit is contained in:
parent
71e8e66f78
commit
580d8ac9b1
@ -982,9 +982,15 @@ testdb=>
|
|||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
<varlistentry id="app-psql-meta-commands-copy">
|
<varlistentry id="app-psql-meta-commands-copy">
|
||||||
|
<term><literal>\copy { <replaceable class="parameter">table</replaceable> [ ( <replaceable class="parameter">column_list</replaceable> ) ] }
|
||||||
|
<literal>from</literal>
|
||||||
|
{ <replaceable class="parameter">'filename'</replaceable> | program <replaceable class="parameter">'command'</replaceable> | stdin | pstdin }
|
||||||
|
[ [ with ] ( <replaceable class="parameter">option</replaceable> [, ...] ) ]
|
||||||
|
[ where <replaceable class="parameter">condition</replaceable> ]</literal></term>
|
||||||
|
|
||||||
<term><literal>\copy { <replaceable class="parameter">table</replaceable> [ ( <replaceable class="parameter">column_list</replaceable> ) ] | ( <replaceable class="parameter">query</replaceable> ) }
|
<term><literal>\copy { <replaceable class="parameter">table</replaceable> [ ( <replaceable class="parameter">column_list</replaceable> ) ] | ( <replaceable class="parameter">query</replaceable> ) }
|
||||||
{ <literal>from</literal> | <literal>to</literal> }
|
<literal>to</literal>
|
||||||
{ <replaceable class="parameter">'filename'</replaceable> | program <replaceable class="parameter">'command'</replaceable> | stdin | stdout | pstdin | pstdout }
|
{ <replaceable class="parameter">'filename'</replaceable> | program <replaceable class="parameter">'command'</replaceable> | stdout | pstdout }
|
||||||
[ [ with ] ( <replaceable class="parameter">option</replaceable> [, ...] ) ]</literal></term>
|
[ [ with ] ( <replaceable class="parameter">option</replaceable> [, ...] ) ]</literal></term>
|
||||||
|
|
||||||
<listitem>
|
<listitem>
|
||||||
|
Loading…
Reference in New Issue
Block a user