From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Andrew Dunstan <andrew(at)dunslane(dot)net>, "Patches (PostgreSQL)" <pgsql-patches(at)postgresql(dot)org> |
Subject: | Re: COPY for CSV documentation |
Date: | 2004-04-12 03:12:13 |
Message-ID: | 200404120312.i3C3CD713770@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-patches |
Tom Lane wrote:
> Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> > That's what I was wondering. Is triggering CSV for multi-character
> > delimiters a little too clever? This reminds me of the use of LIMIT X,Y
> > with no indication which is limit and which is offset.
>
> I agree, this seems risky and not at all readable to someone who doesn't
> remember exactly how the parameter is defined.
Yep.
> >> COPY a FROM stdin WITH DELIMITER "," QUOTE '"' EQUOTE '"';
> > EQUOTE for embedded quote.
>
> ESCAPE would be better no? It's already a keyword ...
Yep.
> BTW, don't forget that the syntax options have to be provided in psql's
> \copy as well. Did the patch cover that?
Oh, yea. That needs to be done too.
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2004-04-12 03:22:27 | Re: Russian FAQ update |
Previous Message | Bruce Momjian | 2004-04-12 03:11:17 | Re: COPY for CSV documentation |