aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor
diff options
context:
space:
mode:
authorNoah Misch <noah@leadboat.com>2019-04-03 17:06:01 -0700
committerNoah Misch <noah@leadboat.com>2019-04-03 17:06:01 -0700
commitf433394e48afbb733b1436276a5a08cd78443164 (patch)
treebab219ff00683a1d10350c9caf23818c228b735d /src/backend/executor
parent2f932f71d9f2963bbd201129d7b971c8f5f077fd (diff)
downloadpostgresql-f433394e48afbb733b1436276a5a08cd78443164.tar.gz
postgresql-f433394e48afbb733b1436276a5a08cd78443164.zip
Handle USE_MODULE_DB for all tests able to use an installed postmaster.
When $(MODULES) and $(MODULE_big) are empty, derive the database name from the first element of $(REGRESS) instead of using a constant string. When deriving the database name from $(MODULES), use its first element instead of the entire list; the earlier approach would fail if any multi-module directory had $(REGRESS) tests. Treat isolation suites and src/pl correspondingly. Under USE_MODULE_DB=1, installcheck-world and check-world no longer reuse any database name in a given postmaster. Buildfarm members axolotl, mandrill and frogfish saw spurious "is being accessed by other users" failures that would not have happened without database name reuse. (The CountOtherDBBackends() 5s deadline expired during DROP DATABASE; a backend for an earlier test suite had used the same database name and had not yet exited.) Back-patch to 9.4 (all supported versions), except bits pertaining to isolation suites. Concept reviewed by Andrew Dunstan, Andres Freund and Tom Lane. Discussion: https://postgr.es/m/20190401135213.GE891537@rfd.leadboat.com
Diffstat (limited to 'src/backend/executor')
0 files changed, 0 insertions, 0 deletions