COPY FROM wish list

From: "Marc Mamin" <M(dot)Mamin(at)intershop(dot)de>
To: <pgsql-general(at)postgresql(dot)org>
Subject: COPY FROM wish list
Date: 2010-02-11 11:18:22
Message-ID: C4DAC901169B624F933534A26ED7DF31034BB4BF@JENMAIL01.ad.intershop.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello,

Looking at the TODO List, I feel that only some aspects of the COPY FROM
command are adressed.
Could a discussion trigger some activity on this topic :o) ?

Best regards,

Marc Mamin

Here my wish list:

COPY tablename [ ( column [, ...] ) ]
FROM { 'filename' | STDIN }
[ [ WITH ]

[ CHECKONLY (DATA_TYPES,CONSTRAINTS) ] # do not import, just
check the content

[ SKIPLINES (n) ]

[ HEADERLINE (n) ] # line conlaining the column names, must be
within the line to skip.
# must match the column list when both are
given
[ DEFERCONSTRAINTS ]

[ SKIPINVALID [FILE file ] SKIPLIMIT (n)] # when set,
invalid lines are skipped and possibly stored in file
# an exception is
triggered when more than SKIPLIMIT lines are found


[ NULLREPLACEMENT (column =value[, ...] ) ] # allow a per column
handling of null values.
# cannot be set
allong with NULL [ AS ]
# not usable for
columns that are missing in the input file ?

[ FEEDBACK (n) ] # display progress every n rows .# for
ORACLE users...

[ COMMIT (n) ] # just an idea: commit each n rows....

[
[ BINARY ]
[ OIDS ]
[ DELIMITER [ AS ] 'delimiter' ]
[ NULL [ AS ] 'null string' ]
[ CSV [ HEADER ]
[ QUOTE [ AS ] 'quote' ]
[ ESCAPE [ AS ] 'escape' ]
[ FORCE NOT NULL column [, ...] ]
]

Responses

Browse pgsql-general by date

  From Date Subject
Next Message db.subscriptions 2010-02-11 11:36:48 Re: PostgreSQL Installation
Previous Message Ashesh Vashi 2010-02-11 11:12:51 Re: PostgreSQL Installation