pgsql: pg_upgrade: Test --check with a running source server - Mailing list pgsql-committers

From Michael Paquier
Subject pgsql: pg_upgrade: Test --check with a running source server
Date
Msg-id E1x22w3-00000003I7m-1oYw@gemulon.postgresql.org
Whole thread
List pgsql-committers
pg_upgrade: Test --check with a running source server

4fff78f009 has added coverage for pg_upgrade --check, but only after
stopping the source server.  This adds coverage for the case where a
source server is still running, checking for port patterns and a success
case where the old server still runs.

The chdir() required for VPATH builds needs to be moved slightly
earlier, to adapt to the generation of the logs.

Author: Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Reviewed-by: Ewan Young <kdbase.hack@gmail.com>
Discussion: https://postgr.es/m/apU4/hmRv/4gv20W@bdtpg

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/88aa6ca138a1eaa63618b2e6ef85ca6c7422dfed

Modified Files
--------------
src/bin/pg_upgrade/t/002_pg_upgrade.pl | 46 ++++++++++++++++++++++++++++++----
1 file changed, 41 insertions(+), 5 deletions(-)


pgsql-committers by date:

Previous
From: Fujii Masao
Date:
Subject: pgsql: Stabilize recovery conflict stats checks in 031_recovery_conflic
Next
From: Amit Kapila
Date:
Subject: pgsql: Use WAL insert position for conflict detection.