Commit 5f7c804b authored by Andrew Dunstan's avatar Andrew Dunstan

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.
parent 8dd401aa
...@@ -21,6 +21,10 @@ unset MAKELEVEL ...@@ -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"
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment