[MASSMAIL]How to interpret 'depends on' errors in pg_restore? - Mailing list pgsql-general

From Fire Emerald
Subject [MASSMAIL]How to interpret 'depends on' errors in pg_restore?
Date
Msg-id 18e84674c10.2815.a5aef60df33e8d2ac3d54c6545825f63@gmail.com
Whole thread Raw
Responses Re: How to interpret 'depends on' errors in pg_restore?
List 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 by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: After 10 -> 15 upgrade getting "cannot commit while a portal is pinned" on one python function
Next
From: 김명준
Date:
Subject: [MASSMAIL] Inquiry on Participating in the Korean Translation Project for PostgreSQL Documentation