Re: [BUG] Unexpected action when publishing partition tables - Mailing list pgsql-hackers

From Amit Kapila
Subject Re: [BUG] Unexpected action when publishing partition tables
Date
Msg-id CAA4eK1LqYupNtNfB1hic7bktXEMS68APMmKg7Ffurgtc5PnD6Q@mail.gmail.com
Whole thread Raw
In response to Re: [BUG] Unexpected action when publishing partition tables  (Amit Kapila <amit.kapila16@gmail.com>)
List pgsql-hackers
On Mon, Oct 18, 2021 at 12:24 PM Amit Kapila <amit.kapila16@gmail.com> wrote:
>
> On Wed, Oct 13, 2021 at 9:11 AM Amit Langote <amitlangote09@gmail.com> wrote:
> > Anyway, I'll think a bit more about the possible hazards of not doing
> > the locking and will reply again if there's indeed a problem(s) that
> > needs to be fixed.
> >
>
> I think you can try to reproduce the problem via the debugger. You can
> stop before calling GetPubPartitionOptionRelations in
> publication_add_relation()  in session-1 and then from another session
> (say session-2) try to delete one of the partition table (without
> replica identity).  Then stop in session-2 somewhere after acquiring
> lock to the corresponding partition relation. Now, continue in
> session-1 and invalidate the rels and let it complete the command. I
> think session-2 will complete the update without processing the
> invalidations.
>

In the last sentence, it should be delete rather than update.

-- 
With Regards,
Amit Kapila.



pgsql-hackers by date:

Previous
From: Amit Kapila
Date:
Subject: Re: [BUG] Unexpected action when publishing partition tables
Next
From: Amit Langote
Date:
Subject: Re: Partition Check not updated when insert into a partition