From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
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 17:39:20 |
Message-ID: | 200206191739.g5JHdKc23443@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Bruce Momjian wrote:
> I am working on the TODO item:
>
> o Change syntax to WITH DELIMITER, (keep old syntax around?)
>
> and I have added syntax so COPY can now accept all parameters at the end
> using WITH:
>
> COPY table
> FROM { 'filename' | stdin }
> [ [ WITH ]
> [ BINARY ]
> [ OIDS ]
> [ DELIMITER 'delimiter' ]
> [ NULL AS 'null string' ] ]
>
> (COPY TO is similar.)
Actually, in looking at the grammar, I see no reason NULL should have AS
while DELIMITER does not. New syntax has AS optional for both:
COPY table
FROM { 'filename' | stdin }
[ [ WITH ]
[ BINARY ]
[ OIDS ]
[ DELIMITER [ AS ] 'delimiter' ]
[ NULL [ AS ] 'null string' ] ]
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
From | Date | Subject | |
---|---|---|---|
Next Message | Barry Lind | 2002-06-19 19:03:36 | Re: [HACKERS] Milliseconds problem with PostgreSQL 7.2 jdbc driver |
Previous Message | Tom Lane | 2002-06-19 16:39:31 | Re: ecpg and bison again |