Problems with pg_dump/restore and OIDs

Поиск
Список
Период
Сортировка
От Khristian
Тема Problems with pg_dump/restore and OIDs
Дата
Msg-id AANLkTikwA8spRRZ=sGJ6gC0vmz5pb_nG+8OLkS2ZGVa5@mail.gmail.com
обсуждение исходный текст
Ответы Re: Problems with pg_dump/restore and OIDs
Список 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

В списке pgsql-general по дате отправления:

Предыдущее
От: hubert depesz lubaczewski
Дата:
Сообщение: Re: How to fire triggers just on "top" level DML
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: Problems with pg_dump/restore and OIDs