Run the "tablespace" regression test first not last. The former placement
authorTom Lane <[email protected]>
Mon, 24 Aug 2009 03:10:16 +0000 (03:10 +0000)
committerTom Lane <[email protected]>
Mon, 24 Aug 2009 03:10:16 +0000 (03:10 +0000)
renders useless one of the few test methodologies we have for WAL replay,
which is to intentionally crash the system just after completing the
regression tests and see if it recovers to the expected database state.
The reason is that DROP TABLESPACE forces a checkpoint, so there's essentially
no WAL available for replay after the tests complete.

src/test/regress/parallel_schedule
src/test/regress/serial_schedule

index 9e0a6046cf28a1aae5a6de2a564c805ec306ad61..3605898d5797ef54c74a1bb9aaaf29ccbd79ae7a 100644 (file)
@@ -5,6 +5,11 @@
 # this limits the number of connections needed to run the tests.
 # ----------
 
+# run tablespace by itself, and first, because it forces a checkpoint;
+# we'd prefer not to have checkpoints later in the tests because that
+# interferes with crash-recovery testing.
+test: tablespace
+
 # ----------
 # The first group of parallel tests
 # ----------
@@ -89,6 +94,3 @@ test: plancache limit plpgsql copy2 temp domain rangefuncs prepare without_oid c
 
 # run stats by itself because its delay may be insufficient under heavy load
 test: stats
-
-# run tablespace by itself
-test: tablespace
index c13eb79a817b6e5d1418349d1bdbdfc0eb7f43a9..dc97b546b94fca769aa2db39e1adc0fca794fb29 100644 (file)
@@ -1,5 +1,6 @@
 # $PostgreSQL$
 # This should probably be in an order similar to parallel_schedule.
+test: tablespace
 test: boolean
 test: char
 test: name
@@ -121,4 +122,3 @@ test: largeobject
 test: with
 test: xml
 test: stats
-test: tablespace