Re: Copy From with "null" data - Mailing list pgsql-general

From Tom Lane
Subject Re: Copy From with "null" data
Date
Msg-id 24639.1061039058@sss.pgh.pa.us
Whole thread Raw
In response to Copy From with "null" data  ("James Moe" <jimoe@sohnen-moe.com>)
List pgsql-general
"James Moe" <jimoe@sohnen-moe.com> writes:
> this bizarre error message is produced in psql:

> ": can't parse "ne 1, pg_atoi: error in "1

That's unrelated to your NULL issue.  It looks like you have
Windows-style newlines (\r\n) in your data.  COPY only likes
Unix-style newlines (\n).  It thinks the \r is a data character.

I think this is finally relaxed for 7.4, but in all current releases
you need to get rid of the carriage return characters.

            regards, tom lane

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: New to list, quick question.
Next
From: Tom Lane
Date:
Subject: Re: [osdldbt-general] Re: getting execution plans with multiple database connections