]> granicus.if.org Git - postgresql/commitdiff
Honour TEMP_CONFIG when testing pg_upgrade
authorAndrew Dunstan <andrew@dunslane.net>
Thu, 17 Sep 2015 15:57:00 +0000 (11:57 -0400)
committerAndrew Dunstan <andrew@dunslane.net>
Thu, 17 Sep 2015 16:12:06 +0000 (12:12 -0400)
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.

contrib/pg_upgrade/test.sh

index f52e3f5ae6dd7c20b0a5c788a560b9ef284464e2..cb3edf8ea69947c1f89f2774c6e4acc69ffb3afa 100644 (file)
@@ -19,6 +19,10 @@ export PGPORT
 # authentication configuration.
 standard_initdb() {
        "$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"
 }