Stabilize subscription stats test.
authorMasahiko Sawada <msawada@postgresql.org>
Fri, 8 Sep 2023 13:50:59 +0000 (22:50 +0900)
committerMasahiko Sawada <msawada@postgresql.org>
Fri, 8 Sep 2023 13:50:59 +0000 (22:50 +0900)
commit28ed5ecbe07121fd55d081e5be1f297a6177c779
treeaa8dc4bde50b3df7efeecf3280fe80b74f09d109
parent5a3423ad8ee171fbf08317917981effe47d211eb
Stabilize subscription stats test.

The new test added by commit 68a59f9e9 disables the subscription and
manually drops the associated replication slot. However, since
disabling the subsubscription doesn't wait for a walsender to release
the replication slot and exit, pg_drop_replication_slot() could
fail. Avoid failure by adding a wait for the replication slot to
become inactive.

Reported-by: Hou Zhijie, as per buildfarm
Reviewed-by: Hou Zhijie
Discussion: https://postgr.es/m/OS0PR01MB571682316378379AA34854F694E9A%40OS0PR01MB5716.jpnprd01.prod.outlook.com
Backpatch-through: 15
src/test/subscription/t/026_stats.pl