Re: Error trying to restore db with blobs - Mailing list pgsql-general

From Doug McNaught
Subject Re: Error trying to restore db with blobs
Date
Msg-id m3vgd0p4b1.fsf@varsoon.denali.to
Whole thread Raw
In response to Error trying to restore db with blobs  ("Evandro" <evandro@horizontenet.com.br>)
List pgsql-general
"Evandro" <evandro@horizontenet.com.br> writes:

> This is the command for dump I´m using:
> pg_dump -Ft -b -o $DB | bzip2 > $ARQ
>
> This is the command for restore:
> pg_restore -h $SRV -vOd $DB -u $BUNZIPARQ
>
> This error occurs both in 7.12 and 7.13 I didn´t tested in 7.2
>
> I´m getting this error:
>
> Creating <Init> Max OID
> Archiver(db): Could not execute query. No result from backend.

I just ran into something like this.  Make sure you create the
database you're going to restore into with template0 as the template,
eg:

$ createdb -T template0 $DB
$ pg_restore <...>

That fixed it for me.

-Doug
--
Let us cross over the river, and rest under the shade of the trees.
   --T. J. Jackson, 1863

pgsql-general by date:

Previous
From: "Bjoern Metzdorf"
Date:
Subject: Replication (sigh)
Next
From: Tom Lane
Date:
Subject: Re: Error trying to restore db with blobs