Re: COPY x FROM STDIN escape handlers - Mailing list pgsql-hackers

From Marc Lavergne
Subject Re: COPY x FROM STDIN escape handlers
Date
Msg-id 3D331123.1060709@richlava.com
Whole thread Raw
In response to COPY x FROM STDIN escape handlers  (Marc Lavergne <mlavergne-pub@richlava.com>)
List pgsql-hackers
I see the problem now. It was my file parser that was escaping the value 
then passing it to PQescapeString which resulted in \\n instead of \n. 
Guess I was on a wild goose chase. I guess PQescapeString() and 
PQputline() are mutally exclusive ... my bad!

Thanks,

Marc L.

Tom Lane wrote:
> Marc Lavergne <mlavergne-pub@richlava.com> writes:
> 
>>Just to give a little background, using pgdump in "default" mode creates 
>>a dump file that includes inline newlines and tabs.
> 
> 
> How old a PG release are you using?  COPY has quoted special characters
> properly for a long time.
> 
>             regards, tom lane
> 




pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: DROP COLUMN
Next
From: "Sergio A. Kessler"
Date:
Subject: Re: More DROP COLUMN