Question about weird COPY syntax - Mailing list pgsql-general

From Evan Carroll
Subject Question about weird COPY syntax
Date
Msg-id AANLkTingzWPVPT5zPe0cbKVetuLmWopxRFu7bd7gshpd@mail.gmail.com
Whole thread Raw
Responses Re: Question about weird COPY syntax
List pgsql-general
Why is it that "DELIMITER", and "NULL" options are under [WITH] but
not under [CSV]. This seems at least slightly awkward.

Command:     COPY
Description: copy data between a file and a table
Syntax:
COPY tablename [ ( column [, ...] ) ]
    FROM { 'filename' | STDIN }
    [ [ WITH ]
          [ BINARY ]
          [ OIDS ]
          [ DELIMITER [ AS ] 'delimiter' ]
          [ NULL [ AS ] 'null string' ]
          [ CSV [ HEADER ]                                        <-
Why not put them under this.
                [ QUOTE [ AS ] 'quote' ]
                [ ESCAPE [ AS ] 'escape' ]
                [ FORCE NOT NULL column [, ...] ]

--
Evan Carroll
System Lord of the Internets
http://www.evancarroll.com

pgsql-general by date:

Previous
From: Evan Carroll
Date:
Subject: Re: Question about weird COPY syntax
Next
From: Tom Lane
Date:
Subject: Re: Question about weird COPY syntax