projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
11103c6
)
Honour TEMP_CONFIG when testing pg_upgrade
author
Andrew Dunstan
<
[email protected]
>
Thu, 17 Sep 2015 15:57:00 +0000
(11:57 -0400)
committer
Andrew Dunstan
<
[email protected]
>
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
patch
|
blob
|
blame
|
history
diff --git
a/contrib/pg_upgrade/test.sh
b/contrib/pg_upgrade/test.sh
index f52e3f5ae6dd7c20b0a5c788a560b9ef284464e2..cb3edf8ea69947c1f89f2774c6e4acc69ffb3afa 100644
(file)
--- a/
contrib/pg_upgrade/test.sh
+++ b/
contrib/pg_upgrade/test.sh
@@
-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"
}