problem with pg_restore - Mailing list pgsql-general

From lists
Subject problem with pg_restore
Date
Msg-id 013201c2f85a$1bc16740$84faabc8@insyde
Whole thread Raw
List pgsql-general
I'm running this script to make back-ups and restore them:

$pg_dump  -s DB1 > DB1.sql

$pg_dump -a -b -Fc -f  DB1.dump -o -v DB1

$dropdb DB2

$createdb DB2

$psql DB2 <DB1.sql

$pg_restore -a -d DB2 -Fc -o -v DB1.dump

but the pg_restore is taking more than 14 hours to
be done. Am I doing something wrong here?

Is there any faster way to restore OIDs/lo objects?

TIA,
Ricardo.


pgsql-general by date:

Previous
From: "Nigel J. Andrews"
Date:
Subject: dropping a table with dependencies
Next
From: Peter Choe
Date:
Subject: stored procedure