postgresql/src/makefiles
Noah Misch f433394e48 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
2019-04-03 17:06:01 -07:00
..
Makefile Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
Makefile.aix Move port-specific parts of with_temp_install to port makefile. 2019-02-04 18:54:56 +00:00
Makefile.cygwin Try to fix non-MSVC Windows builds in the wake of logical replication. 2017-01-20 12:51:31 -05:00
Makefile.darwin Move port-specific parts of with_temp_install to port makefile. 2019-02-04 18:54:56 +00:00
Makefile.freebsd Move port-specific parts of with_temp_install to port makefile. 2019-02-04 18:54:56 +00:00
Makefile.hpux Move port-specific parts of with_temp_install to port makefile. 2019-02-04 18:54:56 +00:00
Makefile.linux Ensure link commands list *.o files before LDFLAGS. 2019-01-02 13:57:54 -05:00
Makefile.netbsd Ensure link commands list *.o files before LDFLAGS. 2019-01-02 13:57:54 -05:00
Makefile.openbsd Ensure link commands list *.o files before LDFLAGS. 2019-01-02 13:57:54 -05:00
Makefile.solaris Ensure link commands list *.o files before LDFLAGS. 2019-01-02 13:57:54 -05:00
Makefile.win32 Remove Windows module-list-dumping code. 2018-04-30 13:20:13 -04:00
pgxs.mk Handle USE_MODULE_DB for all tests able to use an installed postmaster. 2019-04-03 17:06:01 -07:00