1
0
mirror of https://github.com/postgres/postgres.git synced 2025-05-05 09:19:17 +03:00

Honour TEMP_CONFIG when testing pg_upgrade

This setting contains extra configuration for the temp instance, as used
in pg_regress' --temp-config flag.

Backpatch to 9.2 where test.sh was introduced.
This commit is contained in:
Andrew Dunstan 2015-09-17 11:57:00 -04:00
parent d97bdb0826
commit 104184d956

View File

@ -21,6 +21,10 @@ unset MAKELEVEL
# authentication configuration. # authentication configuration.
standard_initdb() { standard_initdb() {
"$1" -N "$1" -N
if [ -n "$TEMP_CONFIG" -a -r "$TEMP_CONFIG" ]
then
cat "$TEMP_CONFIG" >> "$PGDATA/postgresql.conf"
fi
../../test/regress/pg_regress --config-auth "$PGDATA" ../../test/regress/pg_regress --config-auth "$PGDATA"
} }