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

Started by Michael Paquier3 months ago1 messagescommitters
Jump to latest
#1Michael Paquier
michael@paquier.xyz

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: /messages/by-id/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(-)