\copy ... with null as '' csv doesn't get nulls - Mailing list pgsql-general

From Ivan Sergio Borgonovo
Subject \copy ... with null as '' csv doesn't get nulls
Date
Msg-id 20071125183932.600ff98d@webthatworks.it
Whole thread Raw
Responses Re: \copy ... with null as '' csv doesn't get nulls  (Lew <lew@lwsc.ehost-services.com>)
List pgsql-general
I'd expect this:

\copy tablename from 'filename.csv' WITH NULL as '' CSV HEADER

whould import "" as NULL.

The input file is UTF-8 (not Unicode/UTF-16).
I checked the hexdump and the "wannabe" NULL are actually
2c 22 22 2c -> ,"",

all fields are varchar that admit NULL

but still I get empty strings ('') in spite of NULL.

Am I missing something or it is a well known "feature"?

thx

--
Ivan Sergio Borgonovo
http://www.webthatworks.it


pgsql-general by date:

Previous
From: Kris Jurka
Date:
Subject: Re: Error while compiling PostgreSQL with Java
Next
From: Никоноров Григорий
Date:
Subject: Re: Error while compiling PostgreSQL with Java