提交 464db986 编写于 作者: A Adam Lee 提交者: Adam Lee

Fix COPY help page

These three was listed in common options,

```
FILL MISSING FIELDS
LOG ERRORS [SEGMENT REJECT LIMIT <replaceable class="parameter">count</replaceable> [ROWS | PERCENT] ]
IGNORE EXTERNAL PARTITIONS
```

But,

1, they are not working with both FROM and TO
2, FILL MISSING FIELDS should be [FILL_MISSING_FIELDS true | false] in
generic form, which is silly, the old syntax is better
3, SREH and IGNORE EXTERNAL PARTITIONS could not be specified as generic ones

Also documents the missing NEWLINE option.
上级 b320948d
......@@ -26,27 +26,28 @@ COPY <replaceable class="parameter">table_name</replaceable> [ ( <replaceable cl
FROM { '<replaceable class="parameter">filename</replaceable>' | PROGRAM '<replaceable class="parameter">command</replaceable>' | STDIN }
[ [ WITH ] ( <replaceable class="parameter">option</replaceable> [, ...] ) ]
[ ON SEGMENT ]
[ FILL MISSING FIELDS ]
[ [LOG ERRORS] SEGMENT REJECT LIMIT <replaceable class="parameter">count</replaceable> [ [ROWS] | PERCENT ] ]
COPY { <replaceable class="parameter">table_name</replaceable> [ ( <replaceable class="parameter">column</replaceable> [, ...] ) ] | ( <replaceable class="parameter">query</replaceable> ) }
TO { '<replaceable class="parameter">filename</replaceable>' | PROGRAM '<replaceable class="parameter">command</replaceable>' | STDOUT }
[ [ WITH ] ( <replaceable class="parameter">option</replaceable> [, ...] ) ]
[ ON SEGMENT ]
[ IGNORE EXTERNAL PARTITIONS ]
<phrase>where <replaceable class="parameter">option</replaceable> can be one of:</phrase>
FORMAT <replaceable class="parameter">format_name</replaceable>
FORMAT '<replaceable class="parameter">format_name</replaceable>'
OIDS [ <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> ]
QUOTE '<replaceable class="parameter">quote_character</replaceable>'
ESCAPE '<replaceable class="parameter">escape_character</replaceable>'
NEWLINE '<replaceable class="parameter">newline_character</replaceable>'
FORCE_QUOTE { ( <replaceable class="parameter">column</replaceable> [, ...] ) | * }
FORCE_NOT_NULL ( <replaceable class="parameter">column</replaceable> [, ...] ) |
FORCE_NOT_NULL ( <replaceable class="parameter">column</replaceable> [, ...] )
ENCODING '<replaceable class="parameter">encoding_name</replaceable>'
FILL MISSING FIELDS
LOG ERRORS [SEGMENT REJECT LIMIT <replaceable class="parameter">count</replaceable> [ROWS | PERCENT] ]
IGNORE EXTERNAL PARTITIONS
</synopsis>
</refsynopsisdiv>
......@@ -283,6 +284,17 @@ COPY { <replaceable class="parameter">table_name</replaceable> [ ( <replaceable
</listitem>
</varlistentry>
<varlistentry>
<term><literal>NEWLINE</literal></term>
<listitem>
<para>
Specifies the newline character to be used.
The default is 'LF'.
The option could be 'LF, 'CR' or 'CRLF'.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><literal>FORCE_QUOTE</></term>
<listitem>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册