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

Поиск
Список
Период
Сортировка
Искать
От
Daniel Verite
Тема
Re: Allow COPY's 'text' format to output a header
Дата
в 17:26:09
Msg-id
4cf84f71-8388-48ef-be28-78b52f8f334b@manitou-mail.org
Ответ на
Список
Дерево обсуждения
Allow COPY's 'text' format to output a header Simon Muller <samullers@gmail.com>
Re: Allow COPY's 'text' format to output a header David Steele <david@pgmasters.net>
Re: Allow COPY's 'text' format to output a header Michael Paquier <michael@paquier.xyz>
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 "David G. Johnston" <david.g.johnston@gmail.com>
Re: Allow COPY's 'text' format to output a header Isaac Morland <isaac.morland@gmail.com>
Re: Allow COPY's 'text' format to output a header Michael Paquier <michael@paquier.xyz>
Re: Allow COPY's 'text' format to output a header Simon Muller <samullers@gmail.com>
Re: Allow COPY's 'text' format to output a header Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
Re: Allow COPY's 'text' format to output a header "Daniel Verite" <daniel@manitou-mail.org>
Re: Allow COPY's 'text' format to output a header Isaac Morland <isaac.morland@gmail.com>
Re: Allow COPY's 'text' format to output a header Tom Lane <tgl@sss.pgh.pa.us>
Re: Allow COPY's 'text' format to output a header Robert Haas <robertmhaas@gmail.com>
Re: Allow COPY's 'text' format to output a header "David G. Johnston" <david.g.johnston@gmail.com>
Re: Allow COPY's 'text' format to output a header "Daniel Verite" <daniel@manitou-mail.org>
Re: Allow COPY's 'text' format to output a header Simon Muller <samullers@gmail.com>
Re: Allow COPY's 'text' format to output a header Simon Muller <samullers@gmail.com>
Re: Allow COPY's 'text' format to output a header Cynthia Shang <cynthia.shang@crunchydata.com>
Re: Allow COPY's 'text' format to output a header Simon Muller <samullers@gmail.com>
Re: Allow COPY's 'text' format to output a header "Daniel Verite" <daniel@manitou-mail.org>
Re: Allow COPY's 'text' format to output a header Cynthia Shang <cynthia.shang@crunchydata.com>
Re: Allow COPY's 'text' format to output a header Simon Muller <samullers@gmail.com>
Re: Allow COPY's 'text' format to output a header "Daniel Verite" <daniel@manitou-mail.org>
Re: Allow COPY's 'text' format to output a header Cynthia Shang <cynthia.shang@crunchydata.com>
Re: Allow COPY's 'text' format to output a header Simon Muller <samullers@gmail.com>
Re: Allow COPY's 'text' format to output a header Cynthia Shang <cynthia.shang@crunchydata.com>
Re: Allow COPY's 'text' format to output a header Stephen Frost <sfrost@snowman.net>
Re: Allow COPY's 'text' format to output a header Simon Muller <samullers@gmail.com>
Re: Allow COPY's 'text' format to output a header Cynthia Shang <cynthia.shang@crunchydata.com>
Re: Allow COPY's 'text' format to output a header Michael Paquier <michael@paquier.xyz>
Re: Allow COPY's 'text' format to output a header Michael Paquier <michael@paquier.xyz>
[PATCH v1] Allow COPY "test" to output a header and add header matching mode to COPY FROM "Rémi Lapeyre" <remi.lapeyre@henki.fr>
[PATCH v2] Allow COPY "text" to output a header and add header matching mode to COPY FROM "Rémi Lapeyre" <remi.lapeyre@henki.fr>
Re: [PATCH v1] Allow COPY "text" to output a header and add headermatching mode to COPY FROM Rémi Lapeyre <remi.lapeyre@henki.fr>
Re: [PATCH v1] Allow COPY "text" to output a header and add header matching mode to COPY FROM Daniel Gustafsson <daniel@yesql.se>
[PATCH v2] Allow COPY "text" to output a header and add header matching mode to COPY FROM Rémi Lapeyre <remi.lapeyre@lenstra.fr>
Re: [PATCH v2] Allow COPY "text" to output a header and add header matching mode to COPY FROM Daniel Gustafsson <daniel@yesql.se>
Re: [PATCH v2] Allow COPY "text" to output a header and add header matching mode to COPY FROM Rémi Lapeyre <remi.lapeyre@lenstra.fr>
Re: [PATCH v2] Allow COPY "text" to output a header and add header matching mode to COPY FROM Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Add header support to text format and matching feature Rémi Lapeyre <remi.lapeyre@lenstra.fr>
[PATCH v3 1/2] Add header support to "COPY TO" text format Rémi Lapeyre <remi.lapeyre@lenstra.fr>
[PATCH v3 2/2] Add header matching mode to "COPY FROM" Rémi Lapeyre <remi.lapeyre@lenstra.fr>
Re: Add header support to text format and matching feature Magnus Hagander <magnus@hagander.net>
Re: Add header support to text format and matching feature Rémi Lapeyre <remi.lapeyre@lenstra.fr>
Re: Add header support to text format and matching feature vignesh C <vignesh21@gmail.com>
Re: Add header support to text format and matching feature Rémi Lapeyre <remi.lapeyre@lenstra.fr>
Re: Add header support to text format and matching feature "Daniel Verite" <daniel@manitou-mail.org>
Re: Add header support to text format and matching feature vignesh C <vignesh21@gmail.com>
Re: Add header support to text format and matching feature Rémi Lapeyre <remi.lapeyre@lenstra.fr>
Re: Add header support to text format and matching feature Michael Paquier <michael@paquier.xyz>
Re: Add header support to text format and matching feature Rémi Lapeyre <remi.lapeyre@lenstra.fr>
Re: Add header support to text format and matching feature Michael Paquier <michael@paquier.xyz>
Re: Add header support to text format and matching feature Rémi Lapeyre <remi.lapeyre@lenstra.fr>
Re: Add header support to text format and matching feature Rémi Lapeyre <remi.lapeyre@lenstra.fr>
Re: Add header support to text format and matching feature "Daniel Verite" <daniel@manitou-mail.org>
Re: Add header support to text format and matching feature Rémi Lapeyre <remi.lapeyre@lenstra.fr>
Re: [PATCH v1] Allow COPY "text" to output a header and add headermatching mode to COPY FROM Surafel Temesgen <surafel3000@gmail.com>
Re: Allow COPY's 'text' format to output a header Cynthia Shang <cynthia.shang@crunchydata.com>
Re: Allow COPY's 'text' format to output a header Cynthia Shang <cynthia.shang@crunchydata.com>
	Andrew Dunstan wrote:

> I'm not necessarily opposed to this, but I'm not certain about the use
> case either.

+1.
The downside is that it would create the need, when using COPY TO,
to know whether an input file was generated with or without header,
and a hazard on mistakes.
If you say it was and it wasn't, you quietly loose the first row of data.
If you say it wasn't and in fact it was, either there's a
datatype mismatch or you quietly get a spurious row of data.

This complication should be balanced by some advantage.
What can we do with the header?
If you already have the table ready to COPY in, you don't
need that information. The only reason why COPY TO
needs to know about the header is to throw it away.
And if you don't have the table created yet, a header
with just the column names is hardly sufficient to create it,
isn't it?


Best regards,
-- 
Daniel Vérité
PostgreSQL-powered mailer: http://www.manitou-mail.org
Twitter: @DanielVerite

В списке pgsql-hackers по дате отправления
От: Tom Lane
Дата:
Сообщение: Re: Postgres 11 release notes
От: Euler Taveira
Дата:
Сообщение: Re: libpq compression
FAQ