Re: BUG #18988: DROP SUBSCRIPTION locks not-yet-accessed database
Dilip Kumar <dilipbalaut@gmail.com>
From: Dilip Kumar <dilipbalaut@gmail.com>
To: vignesh C <vignesh21@gmail.com>
Cc: Amit Kapila <amit.kapila16@gmail.com>, Álvaro Herrera <alvherre@kurilemu.de>, "Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>, "exclusion@gmail.com" <exclusion@gmail.com>, "pgsql-bugs@lists.postgresql.org" <pgsql-bugs@lists.postgresql.org>
Date: 2025-08-13T09:30:34Z
Lists: pgsql-bugs
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Fix self-deadlock during DROP SUBSCRIPTION.
- aa21e49225a1 19 (unreleased) landed
- a5d4c04150d4 18.0 landed
- 288a817bcb04 17.7 landed
- 7ece7612906e 16.11 landed
- e41137155869 15.15 landed
- ef77502746fe 14.20 landed
- 0a98f24a65cd 13.23 landed
Attachments
- v3-0001-Fix-DROP-SUBSCRIPTION-deadlock-with-new-database-V15.patch (application/octet-stream) patch v3-0001
- v3-0001-Fix-DROP-SUBSCRIPTION-deadlock-with-new-database-v14.patch (application/octet-stream) patch v3-0001
- v3-0001-Fix-DROP-SUBSCRIPTION-deadlock-with-new-database-Master.patch (application/octet-stream) patch v3-0001
- v3-0001-Fix-DROP-SUBSCRIPTION-deadlock-with-new-database-V13.patch (application/octet-stream) patch v3-0001
- v3-0001-Fix-DROP-SUBSCRIPTION-deadlock-with-new-database-V16.patch (application/octet-stream) patch v3-0001
- v3-0001-Fix-DROP-SUBSCRIPTION-deadlock-with-new-database-V17-18.patch (application/octet-stream) patch v3-0001
On Wed, Aug 13, 2025 at 11:20 AM Dilip Kumar <dilipbalaut@gmail.com> wrote: > > On Wed, Aug 13, 2025 at 11:16 AM vignesh C <vignesh21@gmail.com> wrote: > > > > Thanks for the updated patch. This change is required for the back > > branches too. Currently it is not applying for PG16 and below > > branches. > > git am v3-0001-Fix-DROP-SUBSCRIPTION-deadlock-with-new-database-.patch > > Applying: Fix DROP SUBSCRIPTION deadlock with new database creation > > error: patch failed: src/backend/commands/subscriptioncmds.c:1571 > > error: src/backend/commands/subscriptioncmds.c: patch does not apply > > error: patch failed: src/backend/replication/logical/worker.c:4624 > > error: src/backend/replication/logical/worker.c: patch does not apply > > Patch failed at 0001 Fix DROP SUBSCRIPTION deadlock with new database creation > > Right, I was waiting for consensus for the fix, but anyway I will send > the patches for back branches, thanks. I have prepared back branch patches. -- Regards, Dilip Kumar Google