Problems with pg_dump/restore and OIDs

From: Khristian <der(dot)kosak(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Problems with pg_dump/restore and OIDs
Date: 2011-01-20 14:59:08
Message-ID: AANLkTikwA8spRRZ=sGJ6gC0vmz5pb_nG+8OLkS2ZGVa5@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,
I'm trying to backup a schema in a database which uses OIDs. Using
pg_dump | psql works fine, but I need to backup it to a file. So I
tried using pg_dump like this:
pg_dump -h localhost -U usr -F c -f dump.sql -o -n my_schema -b source_db_name
And then restoring it with:
pg_restore -d target_db_name -h localhost -U usr -W -F c dump.sql
And it always fails when restoring some of the OIDs or because of
foreign key restrictions.

How can I backup this successfully?

Thanks,
--
Khristian Alexander Schönrock

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2011-01-20 15:17:03 Re: Problems with pg_dump/restore and OIDs
Previous Message Bruce Momjian 2011-01-20 13:49:55 Re: [GENERAL] streaming replication feature request