postgres.git / summary / log / commit / refs

commit    b876b7e2d12786b101ad178fae29cd6a3d9137e9
Author:   Bruce Momjian <bruce@momjian.us>
Date:     Wed Aug 10 00:37:53 2022 +0000
First released in: 16.0, 15.0

    doc: mention that COPY MATCH requires columns _in_ _order_
    
    Question asked at SCaLE conference.
    
    Reported-by: doc suggestion by Stephen Frost
    
    Backpatch-through: 15


doc/src/sgml/ref/copy.sgml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/src/sgml/ref/copy.sgml b/doc/src/sgml/ref/copy.sgml index 8aae711b3b9..63afa0d97e0 100644 --- a/doc/src/sgml/ref/copy.sgml +++ b/doc/src/sgml/ref/copy.sgml @@ -280,7 +280,7 @@ COPY { <replaceable class="parameter">table_name</replaceable> [ ( <replaceable option is set to <literal>true</literal> (or equivalent Boolean value). 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 - 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. The <literal>MATCH</literal> option is only valid for <command>COPY FROM</command> commands. [parent: 6778361e4111]