pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pg_restore --data-only (-a) does not work
2+ messages / 2 participants
[nested] [flat]

* pg_restore --data-only (-a) does not work
@ 2003-06-24 13:37 Barna, Gary <Gary.Barna@storagenetworks.com>
  2003-06-27 03:33 ` Re: pg_restore --data-only (-a) does not work Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 2+ messages in thread

From: Barna, Gary @ 2003-06-24 13:37 UTC (permalink / raw)
  To: pgsql-admin

I tried countless ways to try to restore data only for all tables using the -a switch. None seem to work. I was able to restore data only for specific tables using the -t switch, but I was expecting that I should be able to invoke a command with -a that checks all tables and restores all data appropriately. Here's the last thing I tried.

bash-2.03$ pg_restore -c -a -d [dbname] ../data/backups/[-Fc Archive]
pg_restore: [archiver (db)] error returned by PQputline

Any ideas??

Thanks,
Gary



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: pg_restore --data-only (-a) does not work
  2003-06-24 13:37 pg_restore --data-only (-a) does not work Barna, Gary <Gary.Barna@storagenetworks.com>
@ 2003-06-27 03:33 ` Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2003-06-27 03:33 UTC (permalink / raw)
  To: Barna, Gary <Gary.Barna@storagenetworks.com>; +Cc: 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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2003-06-27 03:33 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-06-24 13:37 pg_restore --data-only (-a) does not work Barna, Gary <Gary.Barna@storagenetworks.com>
2003-06-27 03:33 ` Tom Lane <tgl@sss.pgh.pa.us>

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