Skip to content

Restoring & pg_restore -j #16

@Krysztophe

Description

@Krysztophe

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions