Re: BUG #4054: Text containing ';' upsets db restores - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #4054: Text containing ';' upsets db restores
Date
Msg-id 3711.1206397207@sss.pgh.pa.us
Whole thread Raw
In response to BUG #4054: Text containing ';' upsets db restores  ("Martin Gregorie" <martin@gregorie.org>)
List pgsql-bugs
"Martin Gregorie" <martin@gregorie.org> writes:
> The errors were captured in the log file, which is safe from being
> overwritten. You're welcome to either the whole thing or to edited
> highlights from it.

That's probably fairly useless, but if you have the dump file it would
be interesting to look at that.

Are you sure that the errors aren't all attributable to a CREATE TABLE
statement failing and then the subsequent COPY command failing even to
start?  Usually you need to look first at the first error, since a lot
of the subsequent ones could be cascading failures.

> 4) I was running psql with a -1 option which, rather
>    to my surprise, didn't abort the run after the
>    first error in the file.

psql doesn't have a -1 option, that's only for pg_restore.  (I believe
pg_restore is a bit smarter about the failed-COPY case, as well.)

            regards, tom lane

pgsql-bugs by date:

Previous
From: "Martin Gregorie"
Date:
Subject: BUG #4054: Text containing ';' upsets db restores
Next
From: "Hugo Rafael Lesme Marquez"
Date:
Subject: BUG #4055: Using Like in PostgreSQL 8.2.7 and 8.3.1