[MASSMAIL]How to interpret 'depends on' errors in pg_restore?

Поиск
Список
Период
Сортировка
От Fire Emerald
Тема [MASSMAIL]How to interpret 'depends on' errors in pg_restore?
Дата
Msg-id 18e84674c10.2815.a5aef60df33e8d2ac3d54c6545825f63@gmail.com
обсуждение исходный текст
Ответы Re: How to interpret 'depends on' errors in pg_restore?
Список pgsql-general
Hello everyone,

I created a database dump in postgres 'custom' format using: pg_dump -d origin --data-only -Fc > file.dump

Then i did a pg_restore -d target --verbose -Fc file.dump and saw in the output this:

5145 0 730750 TABLE subpartitions backends_y2024w03 userA
;        depends on: 237
.... and so on ...

Nothing was restored. The tables mentioned in the output do all exist - but in a different database, thus the "internal id's" - perhaps thats what "depends on" refers to - are in fact different but the id's should not matter, as the table names are important and they all exist.

How to interpret the "depends on" errors which lead to nothing beeing imported? and is there a way to tell pg_restore to skip those depends on checks?

When i created a sql dump with inserts, everything worked but these dumps are not that efficient.

Best regards,
Christian

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

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: After 10 -> 15 upgrade getting "cannot commit while a portal is pinned" on one python function
Следующее
От: 김명준
Дата:
Сообщение: [MASSMAIL] Inquiry on Participating in the Korean Translation Project for PostgreSQL Documentation