pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Noah Misch <noah@leadboat.com>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Handle USE_MODULE_DB for all tests able to use an installed post
Date: Thu, 04 Apr 2019 00:16:55 +0000
Message-ID: <E1hBq3r-0002EM-Cc@gemulon.postgresql.org> (raw)

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

Branch
------
REL9_4_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/624edab582886a40a2a07e4949be82b3d6fe5f1f

Modified Files
--------------
src/Makefile.global.in | 21 +++++++++++++--------
src/makefiles/pgxs.mk  |  7 +------
2 files changed, 14 insertions(+), 14 deletions(-)



view thread (6+ messages)  latest in thread

Message-ID: <E1hBq3r-0002EM-Cc@gemulon.postgresql.org>
Permalink:  ../E1hBq3r-0002EM-Cc@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1hBq3r-0002EM-Cc@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: noah@leadboat.com
  Subject: Re: pgsql: Handle USE_MODULE_DB for all tests able to use an installed post
  In-Reply-To: <E1hBq3r-0002EM-Cc@gemulon.postgresql.org>
  References: <E1hBq3r-0002EM-Cc@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox