Re: COPY with column headings

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: COPY with column headings
Дата
Msg-id 13631.1092668852@sss.pgh.pa.us
обсуждение исходный текст
Ответ на COPY with column headings  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: COPY with column headings
Следующее
От: "Jeroen T. Vermeulen"
Дата:
Сообщение: Re: COPY with column headings