Re: Allow COPY's 'text' format to output a header

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: Allow COPY's 'text' format to output a header
Дата
Msg-id CAKFQuwbO=UZ6GhQbSdOmciKezU-3OsmjROjiq3mpiqmjsr6B-A@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Allow COPY's 'text' format to output a header  (Garick Hamlin <ghamlin@isc.upenn.edu>)
Ответы Re: Allow COPY's 'text' format to output a header  (Isaac Morland <isaac.morland@gmail.com>)
Список pgsql-hackers
On Mon, May 14, 2018 at 11:44 AM, Garick Hamlin <ghamlin@isc.upenn.edu> wrote:
I wonder if there was a way to let COPY FROM detect or ignore headers
as appropriate and rather than cause silently result in headers being
added as data.

​Not reliably
 
Maybe a blank line after the header line could prevent this confusion

​No​

+1 for allowing HEADER with FORMAT text.  It doesn't interfere with COPY and even if I were to agree that CSV format is the better one this seems like an unnecessary area to impose preferences.  If TSV with Header meets someone's need providing a minimal (and consistent with expectations) syntax to accomplish that goal seems reasonable, as does the patch.

David J.

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: explain (verbose off, normalized) vs query planid
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Postgres 11 release notes