Re: COPY syntax improvement - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: COPY syntax improvement
Date
Msg-id Pine.LNX.4.44.0206192120500.929-100000@localhost.localdomain
Whole thread Raw
In response to COPY syntax improvement  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: COPY syntax improvement
Re: COPY syntax improvement
List pgsql-hackers
Bruce Momjian writes:

>     COPY table
>         FROM { 'filename' | stdin }
>         [ [ WITH ]
>               [ BINARY ]
>               [ OIDS ]
>               [ DELIMITER 'delimiter' ]
>               [ NULL AS 'null string' ] ]

I'm not sure what was wrong with the old syntax except for fixing the
DELIMITER plural.  For example, the current
   copy mytable with oids from stdin using delimiter '|';

reads very pleasantly, but
   copy mytable from stdin with oids delimiter '|';

isn't nearly as good.  (E.g., it's not the oids' delimiter, and it's not
*with* delimiter because you don't actually copy the delimiter, you just
use it.)

-- 
Peter Eisentraut   peter_e@gmx.net



pgsql-hackers by date:

Previous
From: "Dann Corbit"
Date:
Subject: Re: count and group by question
Next
From: Peter Eisentraut
Date:
Subject: Re: [Fwd: [PATCHES] contrib/showguc (was Re: revised sample