On Mon, Nov 13, 2023 at 5:38 PM shveta malik <shveta.ma...@gmail.com> wrote: > Okay. Thanks for testing Ajin. I think it needs a fix wherein we set > the local-slot's invalidation status (provided it is not invalidated > already) from the remote slot before this check itself. And if the > slot is invalidated locally (either by itself) or by primary_slot > being invalidated, then we should skip the sync. I will fix this in > the next version.
Yes, that works. Another bug I see in my testing is that pg_get_slot_invalidation_cause() does not release the LOCK if it finds the slot it is searching for. regards, Ajin Cherian Fujitsu Australia