pgsql: pg_upgrade: Test --check with a running source server

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: pg_upgrade: Test --check with a running source server
Date: 2026-09-03 08:36:40
Message-ID: E1x22w3-00000003I7m-1oYw@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: 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(dot)pg(at)gmail(dot)com>
Reviewed-by: Ewan Young <kdbase(dot)hack(at)gmail(dot)com>
Discussion: https://postgr.es/m/apU4/hmRv/4gv20W(at)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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Christoph Berg 2026-09-03 08:42:34 Re: pgsql: Fix compilation with OpenSSL 4
Previous Message Michael Paquier 2026-09-03 08:25:05 pgsql: Revert "Remove fake FunctionCallInfos from the stats .."