doc: Improve COPY synopsis
authorPeter Eisentraut <[email protected]>
Mon, 23 May 2022 11:09:18 +0000 (13:09 +0200)
committerPeter Eisentraut <[email protected]>
Mon, 23 May 2022 11:09:18 +0000 (13:09 +0200)
Upper-case MATCH so that it is clearer that it is a keyword in this
context.

Discussion: https://www.postgresql.org/message-id/flat/20220517.174342.1884842412165214815.horikyota.ntt%40gmail.com

doc/src/sgml/ref/copy.sgml

index 546cef04b98519dd9b339d2f997d0aa8fcf428d6..40af423ccf1736a27d47bb213f0ecb2de1e8f017 100644 (file)
@@ -36,7 +36,7 @@ COPY { <replaceable class="parameter">table_name</replaceable> [ ( <replaceable
     FREEZE [ <replaceable class="parameter">boolean</replaceable> ]
     DELIMITER '<replaceable class="parameter">delimiter_character</replaceable>'
     NULL '<replaceable class="parameter">null_string</replaceable>'
-    HEADER [ <replaceable class="parameter">boolean</replaceable> | match ]
+    HEADER [ <replaceable class="parameter">boolean</replaceable> | MATCH ]
     QUOTE '<replaceable class="parameter">quote_character</replaceable>'
     ESCAPE '<replaceable class="parameter">escape_character</replaceable>'
     FORCE_QUOTE { ( <replaceable class="parameter">column_name</replaceable> [, ...] ) | * }
@@ -278,7 +278,7 @@ COPY { <replaceable class="parameter">table_name</replaceable> [ ( <replaceable
       column in the file.  On output, the first line contains the column
       names from the table.  On input, the first line is discarded when this
       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
       the table, otherwise an error is raised.
       This option is not allowed when using <literal>binary</literal> format.