Re: 024_add_drop_pub.pl might fail due to deadlock
Ajin Cherian <itsajin@gmail.com>
From: Ajin Cherian <itsajin@gmail.com>
To: "Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>
Cc: vignesh C <vignesh21@gmail.com>, Alexander Lakhin <exclusion@gmail.com>, pgsql-hackers <pgsql-hackers@postgresql.org>,
Amit Kapila <amit.kapila16@gmail.com>
Date: 2025-07-24T12:15:12Z
Lists: pgsql-hackers
Attachments
- PG_14-v4-0001-Fix-a-deadlock-during-ALTER-SUBSCRIPTION.-DROP-PU.patch (application/octet-stream) patch v4-0001
On Wed, Jul 23, 2025 at 8:01 PM Hayato Kuroda (Fujitsu) <kuroda.hayato@fujitsu.com> wrote: > > > Dear Ajin, > > > > Thanks for the patch. Firstly let me confirm my understanding. While altering the > > subscription, locks are acquired with below ordering: > > > > I forgot to confirm one point. For which branch should be backpatch? Initially > it was reported only on PG15 [1], but I found 021_alter_sub_pub could fail on PG14. Yes, here's a patch for PG14 as well, based on REL_14_STABLE. regards, Ajin Cherian Fujitsu Australia
Commits
-
Fix a deadlock during ALTER SUBSCRIPTION ... DROP PUBLICATION.
- 2ab2d6f97058 19 (unreleased) landed
- d9f01a287ab1 18.0 landed
- 434d2d147b58 15.14 landed
- 41fb3f51cb74 14.19 landed
- 8c298324a4f3 17.6 landed
- adfd8021911a 16.10 landed