pgsql: TAP tests: check for postmaster.pid anyway when "pg_ctl start" f - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: TAP tests: check for postmaster.pid anyway when "pg_ctl start" f
Date
Msg-id E1nAIWI-0006f0-Il@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
TAP tests: check for postmaster.pid anyway when "pg_ctl start" fails.

"pg_ctl start" might start a new postmaster and then return failure
anyway, for example if PGCTLTIMEOUT is exceeded.  If there is a
postmaster there, it's still incumbent on us to shut it down at
script end, so check for the PID file even though we are about
to fail.

This has been broken all along, so back-patch to all supported branches.

Discussion: https://postgr.es/m/647439.1642622744@sss.pgh.pa.us

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/5940d1b027d750103daf99af48a4cd93be12e148

Modified Files
--------------
src/test/perl/PostgresNode.pm | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Make configure prefer python3 to plain python.
Next
From: Tom Lane
Date:
Subject: pgsql: interval_out() must be marked STABLE, not IMMUTABLE.