Re: problem with copy - Mailing list pgsql-general

From Tom Lane
Subject Re: problem with copy
Date
Msg-id 21415.980178394@sss.pgh.pa.us
Whole thread Raw
In response to problem with copy  (Anand Raman <araman@india-today.com>)
Responses Re: problem with copy
List pgsql-general
Anand Raman <araman@india-today.com> writes:
> arttoday=# \copy artists from STDIN using delimiters '|' with null as '||';

Er, don't you mean "with null as ''"?

The above-given command will never think any input column is a null,
since it won't parse '||' as a column value in the first place.

            regards, tom lane

pgsql-general by date:

Previous
From: Rajit Singh
Date:
Subject: Silencing 'NOTICE' messages for PRIMARY KEY
Next
From: Tom Lane
Date:
Subject: Re: Re: Troubles with performances