From: Tom Lane <tgl@sss.pgh.pa.us>
To: Clayton Cottingham <drfrog@smartt.com>
Cc: pgsql-sql@postgreSQL.org
Subject: Re: [SQL] pg_dumpall + psql -e template1
Date: Fri, 24 Sep 1999 18:42:09 -0400
Message-ID: <7131.938212929@sss.pgh.pa.us> (raw)
In-Reply-To: <37EBF162.867DC57E@smartt.com>
Clayton Cottingham <drfrog@smartt.com> writes:
> when i dump out all dbspg_dumpall>dbs.out and try to put into a new
> installation psql -e template1 <dbs.out it always fails when trying to
> copy the actual data
> usually producing errors that result in the \? listings and then a seq
> fault
There have been some reports that COPY in/out is not careful enough
about quoting control characters and so forth, so if you have text
fields containing control characters you might run into a problem
like the above.
As a quick workaround, try the pg_dump switch to dump data as INSERT
statements instead of with COPY. It'll be a lot slower to load :(
but if it avoids the problem then this is probably the correct
diagnosis.
If you can track down exactly what data is making COPY misbehave,
we'd have a better shot at fixing the bug.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, drfrog@smartt.com
Subject: Re: [SQL] pg_dumpall + psql -e template1
In-Reply-To: <7131.938212929@sss.pgh.pa.us>
References: <37EBF162.867DC57E@smartt.com> <7131.938212929@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox