Re: pg_restore --data-only (-a) does not work - Mailing list pgsql-admin

From Tom Lane
Subject Re: pg_restore --data-only (-a) does not work
Date
Msg-id 24474.1056684807@sss.pgh.pa.us
Whole thread Raw
In response to pg_restore --data-only (-a) does not work  ("Barna, Gary" <Gary.Barna@storagenetworks.com>)
List pgsql-admin
"Barna, Gary" <Gary.Barna@storagenetworks.com> writes:
> bash-2.03$ pg_restore -c -a -d [dbname] ../data/backups/[-Fc Archive]
> pg_restore: [archiver (db)] error returned by PQputline

Lessee ... you drop all the tables (-c) and then try to restore data
without recreating them (-a) ... not too surprising it doesn't work.
I agree the error message sucks though.

FWIW, CVS tip seems to be bright enough to ignore -c when used in
combination with -a; also it gives a more useful message when there
is a failure during a COPY command.

            regards, tom lane

pgsql-admin by date:

Previous
From: Tom Lane
Date:
Subject: Re: Newbie question
Next
From: "Alexnder A. Kapralov"
Date:
Subject: order by problem