On Fri, Jul 31, 2026 at 6:12 PM Hayato Kuroda (Fujitsu)
<[email protected]> wrote:
> BTW, here is a patch to fix the issue.

Thanks for the patch!

+$node->wait_for_log(
+ qr/START_REPLICATION SLOT \"reconnect_test\" LOGICAL/,
+ $log_offset);

Could this pattern also match the STATEMENT log entry emitted when
the old walsender is terminated by pg_terminate_backend()? If so,
is it be better to wait for the new slot acquisition instead? For example:

    qr/acquired logical replication slot \"reconnect_test\"/,

Regards,

-- 
Fujii Masao


Reply via email to