honour TEMP_CONFIG in pg_upgrade tests - Mailing list pgsql-hackers

From Andrew Dunstan
Subject honour TEMP_CONFIG in pg_upgrade tests
Date
Msg-id 55FAC188.30709@dunslane.net
Whole thread Raw
Responses Re: honour TEMP_CONFIG in pg_upgrade tests  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
I propose to have the pg_upgrade test honour TEMP_CONFIG as pg_regress 
(or its Makefile) does, by applying the patch below. There might be 
opther places this should also be done, but this would be a start. The 
motivation is to see if it stops the errors we often see on the somewhat 
slow axolotl buildfarm member when checking pg_upgrade - axolotl's 
TEMP_CONFIG sets up the stats temp directory on a ramdisk, as well as 
turning off fsync.

This would be backpatched to 9.2.


cheers

andrew


diff --git a/src/bin/pg_upgrade/test.sh b/src/bin/pg_upgrade/test.sh
index ec3a7ed..c0dcf8b 100644
--- a/src/bin/pg_upgrade/test.sh
+++ b/src/bin/pg_upgrade/test.sh
@@ -21,6 +21,10 @@ unset MAKELEVEL # authentication configuration. standard_initdb() {    "$1" -N
+   if [ -n "$TEMP_CONFIG" -a -f "$TEMP_CONFIG" ]
+   then
+       cat "$TEMP_CONFIG" >> "$PGDATA/postgresql.conf"
+   fi    ../../test/regress/pg_regress --config-auth "$PGDATA" }





pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: planstate_tree_walker
Next
From: Robert Haas
Date:
Subject: Re: planstate_tree_walker