diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2004-09-22 19:11:19 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2004-09-22 19:11:19 +0000 |
commit | 5d9f5c20dd29ac9dde19c283a821709839fae102 (patch) | |
tree | 6da5d3b3b6556eeedb39b3fd0e28033885979844 /src | |
parent | bebaf7061318cbc82c3077d472d09df38626668a (diff) | |
download | postgresql-5d9f5c20dd29ac9dde19c283a821709839fae102.tar.gz postgresql-5d9f5c20dd29ac9dde19c283a821709839fae102.zip |
Issue a CHECKPOINT just after creating the regression database. Without
this, it's hard to debug core-dump test failures, because WAL replay will
enthusiastically remove the core file (along with the rest of the
regression database directory). Per recent discussion, not to mention
bitter experience.
Diffstat (limited to 'src')
-rw-r--r-- | src/test/regress/pg_regress.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/test/regress/pg_regress.sh b/src/test/regress/pg_regress.sh index a9f0dc423c3..567975f919d 100644 --- a/src/test/regress/pg_regress.sh +++ b/src/test/regress/pg_regress.sh @@ -1,5 +1,5 @@ #! /bin/sh -# $PostgreSQL: pgsql/src/test/regress/pg_regress.sh,v 1.46 2004/08/10 22:24:06 tgl Exp $ +# $PostgreSQL: pgsql/src/test/regress/pg_regress.sh,v 1.47 2004/09/22 19:11:19 tgl Exp $ me=`basename $0` : ${TMPDIR=/tmp} @@ -510,6 +510,9 @@ fi # Create the regression database # We use template0 so that any installation-local cruft in template1 # will not mess up the tests. +# Note: the reason for checkpointing just after creating the new DB is so +# that if we get a backend core dump during the tests, WAL replay won't +# remove the core file. # ---------- message "creating database \"$dbname\"" @@ -520,6 +523,7 @@ if [ $? -ne 0 ]; then fi "$bindir/psql" $psql_options -c "\ +checkpoint; alter database \"$dbname\" set lc_messages to 'C'; alter database \"$dbname\" set lc_monetary to 'C'; alter database \"$dbname\" set lc_numeric to 'C'; |