pg_dump disaster - Mailing list pgsql-hackers

From Patrick Welche
Subject pg_dump disaster
Date
Msg-id 20000119192454.A10697@quartz.newn.cam.ac.uk
Whole thread Raw
Responses Re: [HACKERS] pg_dump disaster
List pgsql-hackers
Trying to load a 6 January pg_dumpall file with today's postgresql gives
many

invalid command \N

probably because
PQexec: you gotta get out of a COPY state yourself.
db.out4:11621: invalid command \.

Somehow psql is out of sync and thinks the \N isn't within a COPY block.
The work around was to redump as insert statements..

It's tricky (for me) to debug as "stdin;" file not found..

How do you get of a COPY state yourself?

Cheers,

Patrick


pgsql-hackers by date:

Previous
From: Don Baccus
Date:
Subject: Re: [HACKERS] gperf anyone?
Next
From: Peter Eisentraut
Date:
Subject: Re: [HACKERS] gperf anyone?