From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Andrew Dunstan <andrew(at)dunslane(dot)net> |
Cc: | PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: COPY with column headings |
Date: | 2004-08-16 15:28:05 |
Message-ID: | 200408161528.i7GFS5u12966@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Andrew Dunstan wrote:
>
>
> Bruce Momjian wrote:
>
> >Someone just asked about a COPY capability to supply the column headings
> >as the first line of the copy statement. Do we want to support
> >something like that? Does anyone else want such functionality?
> >
> >
> >
>
> I had it in mind all along as a possible option for CSV mode, but given
> the heat that was generated by the minimal implementation we did, I
> thought I'd let it rest.
>
> I certainly think it's worth considering, although I see Tom has
> objected :-) . Say we have an option called FIRSTLINELABELS, then on
> copy out it would write the headings on the first line, and on copy in
> it could just ignore the first line (so it could work symmetrically).
Yes, that is what I was thinking. Is this a TODO? Sure it can be
misused but most copy options can be similarly misused.
--
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 | Tom Lane | 2004-08-16 15:30:49 | Re: COPY with column headings |
Previous Message | Andrew Dunstan | 2004-08-16 15:22:39 | Re: COPY with column headings |