Re: Question about weird COPY syntax - Mailing list pgsql-general

From Evan Carroll
Subject Re: Question about weird COPY syntax
Date
Msg-id AANLkTilArK3J6LjR3CV09OQXX_haOcujSWppRbQ5-HVV@mail.gmail.com
Whole thread Raw
Responses Re: Question about weird COPY syntax  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
While asking questions about the grammar of COPY why do we have a
bracket of `[ [ WITH ] ...` rather than `[ WITH ]` ...

COPY tablename [ ( column [, ...] ) ]
        FROM { 'filename' | STDIN }
        [ [ WITH ]   (why is this opening bracket that is never closed here.)
                        [ BINARY ]
                        [ OIDS ]
                        [ DELIMITER [ AS ] 'delimiter' ]
                        [ NULL [ AS ] 'null string' ]
                        [ -PERL_key = value ]
                        [ -PERL_key ]
                        [ CSV [ HEADER ]
                                [ QUOTE [ AS ] 'quote' ]
                                [ ESCAPE [ AS ] 'escape' ]
                                [ FORCE NOT NULL column [, ...] ]
                                [ -TCSV_key ]
                                [ -TCSV_key = value ]

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

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Wrong number of empty toast pages
Next
From: Evan Carroll
Date:
Subject: Question about weird COPY syntax