From: | Dilip Kumar <dilipbalaut(at)gmail(dot)com> |
---|---|
To: | Amit Kapila <amit(dot)kapila16(at)gmail(dot)com> |
Cc: | vignesh C <vignesh21(at)gmail(dot)com>, Álvaro Herrera <alvherre(at)kurilemu(dot)de>, "Hayato Kuroda (Fujitsu)" <kuroda(dot)hayato(at)fujitsu(dot)com>, "exclusion(at)gmail(dot)com" <exclusion(at)gmail(dot)com>, "pgsql-bugs(at)lists(dot)postgresql(dot)org" <pgsql-bugs(at)lists(dot)postgresql(dot)org> |
Subject: | Re: BUG #18988: DROP SUBSCRIPTION locks not-yet-accessed database |
Date: | 2025-08-15 06:28:15 |
Message-ID: | CAFiTN-vtaY55GD90SQXc9cNxg9uL1A5r3Lu70JxkeHvDFR44yw@mail.gmail.com |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
On Fri, Aug 15, 2025 at 11:52 AM Amit Kapila <amit(dot)kapila16(at)gmail(dot)com> wrote:
>
> On Thu, Aug 14, 2025 at 5:04 PM Dilip Kumar <dilipbalaut(at)gmail(dot)com> wrote:
> >
> > On Thu, Aug 14, 2025 at 4:32 PM Dilip Kumar <dilipbalaut(at)gmail(dot)com> wrote:
> > >
> > > On Thu, Aug 14, 2025 at 2:18 PM Amit Kapila <amit(dot)kapila16(at)gmail(dot)com> wrote:
> > > >
> > > > On Thu, Aug 14, 2025 at 2:05 PM Dilip Kumar <dilipbalaut(at)gmail(dot)com> wrote:
> > > > >
> > > > > Yeah this looks fine to me. PFA patches for back branches.
> > > > >
> > > >
> > > > Can we add a test based on the scenario reported in this email?
> > >
> > > At first, I thought we can just add this test in subscription.sql, but
> > > IMHO we should not do that because after testing DROP SUBSCRIPTION
> > > give error we should eventually DROP the subscription for cleanup by
> > > creating the slot and enabling the subscription (as shown below[1])
> > > but I that realized during regression wal_level is not logical so we
> > > are not allowed to create the logical slot. So maybe we should write
> > > it in 100_bugs.pl? Am I missing something?
> > >
> >
> > Another alternative is for cleanup instead of creating a missing slot
> > we can just set the slot_name=NONE and then drop. I will move ahead
> > with this approach.
> >
>
> Yeah, that sounds good to me.
>
PFA, updated patches for v13 to head, make check-world is passing for
all the branches for v15+ we had upgrade test which also run
regression test so we additionally have to set max_wal_senders=1 for
002_pg_upgrade.pl
--
Regards,
Dilip Kumar
Google
Attachment | Content-Type | Size |
---|---|---|
v5-0001-Fix-DROP-SUBSCRIPTION-deadlock-with-new-database-head.patch | application/octet-stream | 6.5 KB |
v5-0001-Fix-DROP-SUBSCRIPTION-deadlock-with-new-database-v15.patch | application/octet-stream | 6.3 KB |
v5-0001-Fix-DROP-SUBSCRIPTION-deadlock-with-new-database-v13.patch | application/octet-stream | 5.6 KB |
v5-0001-Fix-DROP-SUBSCRIPTION-deadlock-with-new-database-v14.patch | application/octet-stream | 5.6 KB |
v5-0001-Fix-DROP-SUBSCRIPTION-deadlock-with-new-database-v16.patch | application/octet-stream | 6.3 KB |
v5-0001-Fix-DROP-SUBSCRIPTION-deadlock-with-new-database-v17.patch | application/octet-stream | 6.3 KB |
v5-0001-Fix-DROP-SUBSCRIPTION-deadlock-with-new-database-v18.patch | application/octet-stream | 6.5 KB |
From | Date | Subject | |
---|---|---|---|
Previous Message | Amit Kapila | 2025-08-15 06:21:47 | Re: BUG #18988: DROP SUBSCRIPTION locks not-yet-accessed database |