pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #15385: Copy from using CSV ignores the header
2+ messages / 2 participants
[nested] [flat]

* BUG #15385: Copy from using CSV ignores the header
@ 2018-09-14 16:49 PG Bug reporting form <noreply@postgresql.org>
  2018-09-14 17:02 ` Re: BUG #15385: Copy from using CSV ignores the header David G. Johnston <david.g.johnston@gmail.com>
  0 siblings, 1 reply; 2+ messages in thread

From: PG Bug reporting form @ 2018-09-14 16:49 UTC (permalink / raw)
  To: pgsql-bugs@lists.postgresql.org; +Cc: dab1961uk@gmail.com

The following bug has been logged on the website:

Bug reference:      15385
Logged by:          David Betterton
Email address:      dab1961uk@gmail.com
PostgreSQL version: 9.5.14
Operating system:   Linux
Description:        

This is stated in the documentation, but it's totally ludicrous, it means
that every csv has to conform to the order of the database columns, or the
caller has to explicitly set the column order - which is in the CSV file



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: BUG #15385: Copy from using CSV ignores the header
  2018-09-14 16:49 BUG #15385: Copy from using CSV ignores the header PG Bug reporting form <noreply@postgresql.org>
@ 2018-09-14 17:02 ` David G. Johnston <david.g.johnston@gmail.com>
  0 siblings, 0 replies; 2+ messages in thread

From: David G. Johnston @ 2018-09-14 17:02 UTC (permalink / raw)
  To: dab1961uk@gmail.com; pgsql-bugs@lists.postgresql.org

On Fri, Sep 14, 2018 at 9:49 AM, PG Bug reporting form <
noreply@postgresql.org> wrote:

> The following bug has been logged on the website:
>
> Bug reference:      15385
> Logged by:          David Betterton
> Email address:      dab1961uk@gmail.com
> PostgreSQL version: 9.5.14
> Operating system:   Linux
> Description:
>
> This is stated in the documentation,


Which makes it "not a bug", -general would be the appropriate list to use
here.


> but it's totally ludicrous,


not its not


> it means
> that every csv has to conform to the order of the database columns, or the
> caller has to explicitly set the column order - which is in the CSV file
>

And if one doesn't rely upon column position and instead wants to key off
of names then you have to ensure the table and csv files names are in
agreement.

History suggests the cost/benefit of change in this area is pretty low.

David J.

^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2018-09-14 17:02 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-09-14 16:49 BUG #15385: Copy from using CSV ignores the header PG Bug reporting form <noreply@postgresql.org>
2018-09-14 17:02 ` David G. Johnston <david.g.johnston@gmail.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox