From: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
---|---|
To: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
Cc: | PostgreSQL-development <pgsql-hackers(at)postgreSQL(dot)org> |
Subject: | Re: COPY syntax improvement |
Date: | 2002-06-19 21:12:31 |
Message-ID: | Pine.LNX.4.44.0206192120500.929-100000@localhost.localdomain |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(at)gmx(dot)net
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Eisentraut | 2002-06-19 21:13:10 | Re: [Fwd: [PATCHES] contrib/showguc (was Re: revised sample |
Previous Message | Dann Corbit | 2002-06-19 21:02:17 | Re: count and group by question |