Skip to content

Commit 104184d

Browse files
committed
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.
1 parent d97bdb0 commit 104184d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/bin/pg_upgrade/test.sh

+4
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ unset MAKELEVEL
2121
# authentication configuration.
2222
standard_initdb() {
2323
"$1" -N
24+
if [ -n "$TEMP_CONFIG" -a -r "$TEMP_CONFIG" ]
25+
then
26+
cat "$TEMP_CONFIG" >> "$PGDATA/postgresql.conf"
27+
fi
2428
../../test/regress/pg_regress --config-auth "$PGDATA"
2529
}
2630

0 commit comments

Comments
 (0)