postgresql/src/makefiles
Noah Misch 991a912535 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:10:36 -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:59:44 +00:00
Makefile.cygwin Consistently define BUILDING_DLL during builds of src/port for Windows. 2014-06-11 19:50:41 -04:00
Makefile.darwin Move port-specific parts of with_temp_install to port makefile. 2019-02-04 18:59:44 +00:00
Makefile.freebsd Move port-specific parts of with_temp_install to port makefile. 2019-02-04 18:59:44 +00:00
Makefile.hpux Move port-specific parts of with_temp_install to port makefile. 2019-02-04 18:59:44 +00:00
Makefile.linux Always use -fPIC, not -fpic, when building shared libraries with gcc. 2017-06-01 13:32:56 -04:00
Makefile.netbsd Always use -fPIC, not -fpic, when building shared libraries with gcc. 2017-06-01 13:32:56 -04:00
Makefile.openbsd Always use -fPIC, not -fpic, when building shared libraries with gcc. 2017-06-01 13:32:56 -04:00
Makefile.sco Split the LDFLAGS make variable into two parts: LDFLAGS is now used for 2010-07-05 18:54:38 +00:00
Makefile.solaris Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
Makefile.unixware Split the LDFLAGS make variable into two parts: LDFLAGS is now used for 2010-07-05 18:54:38 +00:00
Makefile.win32 Fix typos in comments and doc 2016-01-28 16:47:36 +09:00
pgxs.mk Handle USE_MODULE_DB for all tests able to use an installed postmaster. 2019-04-03 17:10:36 -07:00