17.09.2024 10:47, Alexander Korotkov wrote:
> Yes, now I did reproduce. I got that the problem could be that insert
> LSN is not yet written at primary, thus wait_for_catchup doesn't wait
> for it. I've workarounded that using pg_switch_wal(). The revised
> patchset is attached.
Thank you for the revised patch!
The improved test works reliably for me (100 out of 100 runs passed),
Best regards,
Alexander