Skip to content

Commit 5f7c804

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 8dd401a commit 5f7c804

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/bin/pg_upgrade/test.sh

Lines changed: 4 additions & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy