Re: Three more loops that let a function drop a not-yet-processed index/partition

From: Baji Shaik <baji(dot)pgdev(at)gmail(dot)com>
To: Michael Paquier <michael(at)paquier(dot)xyz>
Cc: PostgreSQL-development <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Three more loops that let a function drop a not-yet-processed index/partition
Date: 2026-11-30 14:32:20
Message-ID: CA+fm-RPSGCg2XcnMd61ZHF-vOK8XcH8MEo_HMCwvvy0F5Gj+Cw@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, Nov 23, 2026 at 10:13 PM Michael Paquier <michael(at)paquier(dot)xyz>
wrote:

> On Sat, Nov 21, 2026 at 12:04:23PM +0900, Michael Paquier wrote:
> 1) This represents a new deadlock risk if running in two separate
> session the same REINDEX TABLE.
>

Thank you for the review, Michael.
Yes, I can see the deadlock with two sessions running REINDEX TABLE on
the same table. Also, you are right that it's not a crash, my bad.

> Perhaps in terms of stability we could make that a HEAD-only change,
> but nobody is going to hit that in practice anyway?
>

Do you think the syscache lookup is worth doing on HEAD? If not, I will
withdraw this.

Thanks,
Baji Shaik

In response to

Browse pgsql-hackers by date

  From Date Subject
Previous Message Pavel Stehule 2026-11-30 14:14:56 Re: extremely slow planner when DISTINCT clause holds more columns