Re: DROP SUBSCRIPTION deadlock with ALTER SUBSCRIPTION OWNER TO

From: Nisha Moond <nisha(dot)moond412(at)gmail(dot)com>
To: Kirill Reshke <reshkekirill(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: DROP SUBSCRIPTION deadlock with ALTER SUBSCRIPTION OWNER TO
Date: 2026-12-03 03:46:30
Message-ID: CABdArM7GFSW9J3fhFTVOsrJg5Bbp4k4aR7QZqAz1Mn9JOYk4+A@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Dec 3, 2026 at 2:39 AM Kirill Reshke <reshkekirill(at)gmail(dot)com> wrote:
>
> Hi!
> After the CLT feature committed [0] server nowl can deadlock if the
> subscription has a conflict-log table and DROP SUBSCRIPTION races with
> ALTER SUBSCRIPTION OWNER TO.
>

Thanks for the report. I was able to reproduce the issue with concurrent
ALTER OWNER and DROP commands. Instead of the expected "tuple concurrently
deleted" error, the DROP fails with a deadlock:

ERROR: deadlock detected
DETAIL: Process 41745 waits for AccessExclusiveLock on relation 16386 of
database 5; blocked by process 43197.
Process 43197 waits for ShareLock on transaction 678; blocked by process
41745.
HINT: See server log for query details.

We will look into it.

--
Thanks,
Nisha

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Smith 2026-12-03 03:52:31 Re: DOC: Minor updates for logical replication conflicts
Previous Message shihao zhong 2026-12-03 03:43:05 Re: pg_dump restore fails for partitions of extension-owned tables