]> granicus.if.org Git - postgresql/commitdiff
Remove prepared transactions from main isolation test schedule.
authorAndrew Dunstan <andrew@dunslane.net>
Fri, 20 Jul 2012 19:56:57 +0000 (15:56 -0400)
committerAndrew Dunstan <andrew@dunslane.net>
Fri, 20 Jul 2012 19:56:57 +0000 (15:56 -0400)
There is no point in running this test when prepared transactions are disabled,
which is the default. New make targets that include the test are provided. This
will save some useless waste of cycles on buildfarm machines.

Backpatch to 9.1 where these tests were introduced.

src/test/isolation/Makefile
src/test/isolation/isolation_schedule

index 80a8a25bb3f13678f67a8c6726c0a2961547feac..f11fedd077c3557c2b46dc8d67512e63c7c8114f 100644 (file)
@@ -75,6 +75,13 @@ maintainer-clean: distclean
 installcheck: all
        ./pg_isolation_regress --psqldir='$(PSQLDIR)' --inputdir=$(srcdir) --schedule=$(srcdir)/isolation_schedule
 
+# Version of the install check test that includes the prepared_transactions test
+# It only makes sense to run this if set up to use prepared transactions,
+# via the postgresql.conf.
+installcheck-prepared-txns: all
+       ./pg_isolation_regress --psqldir='$(PSQLDIR)' --inputdir=$(srcdir) --schedule=$(srcdir)/isolation_schedule prepared-transactions
+
+
 # We can't support "make check" because isolationtester requires libpq, and
 # in fact (on typical platforms using shared libraries) requires libpq to
 # already be installed.  You could run "make install" and then run a check
index 386ef78aac8055944aec46b685656f28f18fb859..6ea8a29f490f32904a0495e1f24f61c54e6d3b64 100644 (file)
@@ -9,4 +9,3 @@ test: ri-trigger
 test: partial-index
 test: two-ids
 test: multiple-row-versions
-test: prepared-transactions