doc: mention that COPY MATCH requires columns _in_ _order_

Question asked at SCaLE conference.

Reported-by: doc suggestion by Stephen Frost

Backpatch-through: 15
This commit is contained in:
Bruce Momjian 2022-08-09 20:37:53 -04:00
parent 0b039e3a84
commit 356dd2ce5b
1 changed files with 1 additions and 1 deletions

View File

@ -280,7 +280,7 @@ COPY { <replaceable class="parameter">table_name</replaceable> [ ( <replaceable
option is set to <literal>true</literal> (or equivalent Boolean value). option is set to <literal>true</literal> (or equivalent Boolean value).
If this option is set to <literal>MATCH</literal>, the number and names If this option is set to <literal>MATCH</literal>, the number and names
of the columns in the header line must match the actual column names of of the columns in the header line must match the actual column names of
the table, otherwise an error is raised. the table, in order; otherwise an error is raised.
This option is not allowed when using <literal>binary</literal> format. This option is not allowed when using <literal>binary</literal> format.
The <literal>MATCH</literal> option is only valid for <command>COPY The <literal>MATCH</literal> option is only valid for <command>COPY
FROM</command> commands. FROM</command> commands.