On Sat, 18 Jul 2026 at 09:05, Amit Kapila <[email protected]> wrote:
>
> I have pushed the revert. Attached patch fixes the race without taking
> lock on pg_subscription_rel.

The changes look good to me. I verified the behavior using a debugger
on both the PG20 and PG19 branches, confirming that a concurrent
refresh successfully stops the sequence sync worker and resets the
sequences to their initial state. I also verified the fix using the
attached injection point test. I'm not entirely sure if we should
include this test in the final commit, as it requires introducing a
new injection point to the codebase.

Regards,
Vignesh

Attachment: 0001-Test-add-test-for-REFRESH-SEQUENCES-stopping-a-runni.patch
Description: Binary data

Reply via email to