Hi James,
On Mon, Nov 30, 2026, PG Bug reporting form wrote:
> Expected: the cycle is detected and one transaction gets 40P01, or the
> documentation says that a DEFERRABLE wait can deadlock with a lock waiter
> without detection.
I can reproduce this on master. Making the deadlock detector see the
safe snapshot wait looks like a lot of work for a case that needs an
explicit lock before the first query. I think a documentation note is
enough, but I'd like to hear if others prefer a code fix.
Thanks,
Shihao