Log more info when wait-for-catchup tests time out.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 12 Aug 2024 17:18:36 +0000 (13:18 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 12 Aug 2024 17:18:36 +0000 (13:18 -0400)
commit2aecbd752616aa664f32b3c1804732e475def7cc
tree90ea5f2d3aed7fd55bc583c329ded7a7c8d1a2d0
parent760162fedb4f7ee6f0167cc6acfadee6ccb6be66
Log more info when wait-for-catchup tests time out.

Cluster.pm's wait_for_catchup and allied subroutines don't provide
enough information to diagnose the problem when a wait times out.
In hopes of debugging some intermittent buildfarm failures, let's
dump the ending state of the relevant system view when that happens.

Add this to v17 too, but not stable branches.

Discussion: https://postgr.es/m/352068.1723422725@sss.pgh.pa.us
src/test/perl/PostgreSQL/Test/Cluster.pm