Re: pg_restore --data-only (-a) does not work

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Barna, Gary" <Gary(dot)Barna(at)storagenetworks(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: pg_restore --data-only (-a) does not work
Date: 2003-06-27 03:33:27
Message-ID: 24474.1056684807@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

"Barna, Gary" <Gary(dot)Barna(at)storagenetworks(dot)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

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Alexnder A. Kapralov 2003-06-27 08:56:47 order by problem
Previous Message Tom Lane 2003-06-27 02:47:42 Re: Newbie question