projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e2e46a9
)
Honour TEMP_CONFIG when testing pg_upgrade
author
Andrew Dunstan
Thu, 17 Sep 2015 15:57:00 +0000
(11:57 -0400)
committer
Andrew Dunstan
Thu, 17 Sep 2015 16:04:16 +0000
(12:04 -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
patch
|
blob
|
blame
|
history
diff --git
a/contrib/pg_upgrade/test.sh
b/contrib/pg_upgrade/test.sh
index 13261f66d9e023ffa349e6bc1d75b1ab860044db..b6aaff2d97820f7b53680549056c17298a20de6a 100644
(file)
--- a/
contrib/pg_upgrade/test.sh
+++ b/
contrib/pg_upgrade/test.sh
@@
-21,6
+21,10
@@
unset MAKELEVEL
# authentication configuration.
standard_initdb() {
"$1" -N
+ if [ -n "$TEMP_CONFIG" -a -r "$TEMP_CONFIG" ]
+ then
+ cat "$TEMP_CONFIG" >> "$PGDATA/postgresql.conf"
+ fi
../../src/test/regress/pg_regress --config-auth "$PGDATA"
}