Skip to content
Snippets Groups Projects
Commit e61fb6d5 authored by Andrew Dunstan's avatar Andrew Dunstan
Browse files

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 11103c6d
No related branches found
No related tags found
No related merge requests found
...@@ -19,6 +19,10 @@ export PGPORT ...@@ -19,6 +19,10 @@ export PGPORT
# authentication configuration. # authentication configuration.
standard_initdb() { standard_initdb() {
"$1" "$1"
if [ -n "$TEMP_CONFIG" -a -r "$TEMP_CONFIG" ]
then
cat "$TEMP_CONFIG" >> "$PGDATA/postgresql.conf"
fi
../../src/test/regress/pg_regress --config-auth "$PGDATA" ../../src/test/regress/pg_regress --config-auth "$PGDATA"
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment