Re: COPY with column headings - Mailing list pgsql-hackers

From Tom Lane
Subject Re: COPY with column headings
Date
Msg-id 13631.1092668852@sss.pgh.pa.us
Whole thread Raw
In response to COPY with column headings  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-hackers
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> 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?

No.  Tell him to use SELECT.

(Such a capability would be a permanent hazard, because any time you
tried to import with the opposite setting from what you'd exported,
you'd either get a failure, or bad data, or silent loss of the first
line of real data.)
        regards, tom lane


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: COPY with column headings
Next
From: "Jeroen T. Vermeulen"
Date:
Subject: Re: COPY with column headings