Search Postgresql Archives

Problems with pg_dump/restore and OIDs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux