Re: pg_dump output - Mailing list pgsql-hackers

From Tom Lane
Subject Re: pg_dump output
Date
Msg-id 21647.982011217@sss.pgh.pa.us
Whole thread Raw
In response to Re: pg_dump output  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: pg_dump output  (Kovacs Zoltan <kovacsz@pc10.radnoti-szeged.sulinet.hu>)
List pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> Tom Lane writes:
>> Peter Eisentraut <peter_e@gmx.net> writes:
> Btw., if I select the default COPY output, pg_dump seems to drop
> non-printable characters like '\001'.
>> 
>> You sure?  They're there in my output.  COPY doesn't turn them into
>> escape sequences, if that's what you were expecting.

> If I do

> INSERT INTO test VALUES ('foo\001bar');

> then pg_dump writes

> COPY "test"  FROM stdin;
> foobar
> \.

What I get is 'foo^Abar'.  What are you using to inspect the file?
        regards, tom lane


pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: pg_dump output
Next
From: Kovacs Zoltan
Date:
Subject: Re: pg_dump output