HomeSoftware Heritage

Ignore psqlrc when loading the rubygems database dump

Description

Ignore psqlrc when loading the rubygems database dump

The SQL dump contains ownership instructions that can't be run if you
don't have the right users in your database clusters. When someone has a
psqlrc with ON_ERROR_STOP, this fails the load of the dump.

Use the opportunity to trigger an exception when psql returns a non-zero
exit code, rather than continue with an empty/inconsistent database.

Details

Provenance
olasdAuthored on Dec 5 2022, 1:43 PM
olasdPushed on Dec 5 2022, 2:56 PM
Differential Revision
D8914: Ignore psqlrc when loading the rubygems database dump
Parents
rDLSf4aafe026b29: fedora: Update versions in packages dict provided as loader argument
Branches
Unknown
Tags
Unknown
Build Status
Buildable 33081
Build 51855: test-and-buildJenkins console · Jenkins