-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
Both extensions (omp-core & wh_nagios) create their tables during the CREATE EXTENSION, including foreign keys. So we had a pg_restore -j8 --section=data of an OPM database that failed, because it was parallelized, the extensions tables data were not loaded sequentially, and the foreign keys were already there.
The doc should state an official upgrade procedure, eg:
- separate pg_restore for extension tables (not parallelized) and other ones (parallelized), with pg_restore -l and -L
- pg_restore --disable-triggers 😱
- an official script to drop and recreate manually the constraints
- something else that I didn't think of.
Metadata
Metadata
Assignees
Labels
No labels