unused columns in copy - Mailing list pgsql-sql

From chester c young
Subject unused columns in copy
Date
Msg-id 471945.42509.qm@web54306.mail.re2.yahoo.com
Whole thread Raw
Responses Re: unused columns in copy
List pgsql-sql
is there a way for COPY FROM to ignore unused columns in CSV?

in other words, if table t1 has columns c1, c2, and if csv has columns c1, c3, c2, could I do something like

COPY t1( c1, null, c2 ) FROM 'file.csv'

     


pgsql-sql by date:

Previous
From: chester c young
Date:
Subject: how to tell if column set on update
Next
From: Andreas Wenk
Date:
Subject: Re: Table inheritance problem