Re: pg_dump output

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: Kovacs Zoltan <kovacsz(at)pc10(dot)radnoti-szeged(dot)sulinet(dot)hu>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: pg_dump output
Date: 2001-02-12 20:53:37
Message-ID: 21647.982011217@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> Tom Lane writes:
>> Peter Eisentraut <peter_e(at)gmx(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2001-02-12 21:00:35 Re: pg_dump output
Previous Message Tom Lane 2001-02-12 20:13:37 Re: pg_dump output