pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Help pg_restore
2+ messages / 2 participants
[nested] [flat]

* Help pg_restore
@ 2002-02-25 16:20  Trevor Astrope <astrope@e-corp.net>
  0 siblings, 1 reply; 2+ messages in thread

From: Trevor Astrope @ 2002-02-25 16:20 UTC (permalink / raw)
  To: pgsql-admin

I'm trying to restore a database dumped with pg_dump with the -o -Fc
options with pg_restore from a 7.1.3 database into a 7.1.3 database on
another machine.

When using the -d option in pg_restore, I get this error:

Connecting to database for restore
Creating <Init> Max OID
Archiver(db): Could not execute query. No result from backend.


If I don't use -d and pipe the output of pg_restore into psql, I can
restore the database, but it takes about 20 hours to restore a .2.8gb dump
when uncompressed.

So my question is: what is the syntax to restore this dump?

Regards,

Trevor Astrope
astrope@e-corp.net




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

* Re: Help pg_restore
@ 2002-02-26 23:19  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Trevor Astrope <astrope@e-corp.net>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2002-02-26 23:19 UTC (permalink / raw)
  To: Trevor Astrope <astrope@e-corp.net>; +Cc: pgsql-admin

Trevor Astrope <astrope@e-corp.net> writes:
> I'm trying to restore a database dumped with pg_dump with the -o -Fc
> options with pg_restore from a 7.1.3 database into a 7.1.3 database on
> another machine.

> When using the -d option in pg_restore, I get this error:

> Connecting to database for restore
> Creating <Init> Max OID
> Archiver(db): Could not execute query. No result from backend.

This is a known bug in 7.1.* pg_restore: it doesn't work with -o -Fc
(nor -o -Ft) archives.  It's fixed in 7.2.

If you don't want to update your server to 7.2 just yet, I believe it
will work to install only the 7.2 version of pg_restore and use that
to restore this archive.

			regards, tom lane



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


end of thread, other threads:[~2002-02-26 23:19 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-02-25 16:20 Help pg_restore Trevor Astrope <astrope@e-corp.net>
2002-02-26 23:19 ` 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