PgDump and inherited tables
Posted: Wed 12 Aug 2020 16:20
Hello,
I need to perform a dump of a simple schema, but with inherited tables.
Regardless of the options I tried, the sql provided by the pgDump component does not handle inherited tables:
- the create table statement doesn't include the inherits (mySchema.myTable) statement
- the base table is managed as if it was a regular table, i.e. insert statements are generated for this table but they should not
- the base table is created in the middle of the script, but it should be created first, as other tables inherit from it
How can I proceed to generate sql dump that takes into account inherited tables?
Edit: I use the latest pgDac version 6.2.4, and postgre 12
Thanks!
g.
I need to perform a dump of a simple schema, but with inherited tables.
Regardless of the options I tried, the sql provided by the pgDump component does not handle inherited tables:
- the create table statement doesn't include the inherits (mySchema.myTable) statement
- the base table is managed as if it was a regular table, i.e. insert statements are generated for this table but they should not
- the base table is created in the middle of the script, but it should be created first, as other tables inherit from it
How can I proceed to generate sql dump that takes into account inherited tables?
Edit: I use the latest pgDac version 6.2.4, and postgre 12
Thanks!
g.