-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
RequestRequest for image modification or featureRequest for image modification or featurequestionUsability question, not directly related to an error with the imageUsability question, not directly related to an error with the image
Description
postgres/9.6/docker-entrypoint.sh
Line 104 in f7dc572
psql=( psql -v ON_ERROR_STOP=1 ) |
In this line psql is advised to fail fast on errors. This is a problem for importing any dump created by pg_dumpall, since there is a 99% chance it will include a CREATE ROLE postgres;
statement, causing an error. In default mode psql keeps on executing the following statements, which is perfectly fine to restore a cluster.
My expectation would be that a pg_dumpall dump can be imported smoothly when mounted at /docker-entrypoint-initdb.d
.
I suggest to remove the fail-on-error setting or at least make it configurable through an environment variable (IMHO with defaulting to standard psql behaviour)
tokland
Metadata
Metadata
Assignees
Labels
RequestRequest for image modification or featureRequest for image modification or featurequestionUsability question, not directly related to an error with the imageUsability question, not directly related to an error with the image