Re: COPY WITH CSV FORCE QUOTE * - Mailing list pgsql-hackers

From Josh Berkus
Subject Re: COPY WITH CSV FORCE QUOTE *
Date
Msg-id 4A5F797F.4040508@agliodbs.com
Whole thread Raw
In response to Re: COPY WITH CSV FORCE QUOTE *  (Andrew Dunstan <andrew@dunslane.net>)
Responses Re: COPY WITH CSV FORCE QUOTE *
List pgsql-hackers
Andrew,

> FORCE NOT NULL is in any case a fairly blunt instrument - it doesn't
> work for a column of any type that doesn't accept an empty string as
> valid input, such as numeric types.

Con: this allows COPY to produce output which cannot be reloaded into 
PostgreSQL.

Pro: there is a lot of extremely broken external software which expects 
"nulls" to be expressed as "".  This improves compatiblity with them.


-- 
Josh Berkus
PostgreSQL Experts Inc.
www.pgexperts.com


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [GENERAL] pg_migrator not setting values of sequences?
Next
From: "Kevin Grittner"
Date:
Subject: pg_stat_activity.application_name