Re: Partial hash index is not used for implied qual. - Mailing list pgsql-hackers

From Sergei Glukhov
Subject Re: Partial hash index is not used for implied qual.
Date
Msg-id 7009dd30-5d4e-49a2-af1d-c1b5f8e02288@postgrespro.ru
Whole thread Raw
In response to Re: Partial hash index is not used for implied qual.  (David Rowley <dgrowleyml@gmail.com>)
Responses Re: Partial hash index is not used for implied qual.
List pgsql-hackers
Hi,

On 11/27/25 7:01 AM, David Rowley wrote:
> On Thu, 27 Nov 2025 at 07:26, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> So I'm inclined to apply the attached and just call it good.
> I think the patch looks fine.

+1, verified, thanks a lot!

>
>> Should we back-patch?  I'm unsure.  Clearly it's a bug that we
>> cannot generate an indexscan plan in this case, but we've learned
>> that changing plans in released branches is often not wanted.
>> And given the lack of field complaints, nobody is using the case
>> anyway.
> I feel like anyone adding a partial hash index has done so quite
> purposefully. I suspect they might be surprised if there's no means
> whatsoever to use that index in scans, so perhaps it's ok to
> backpatch.
>
> Sergei, can you confirm if this was something he noticed when playing
> around on master, or if this came from a field report?

It was reported for v16.


Regards,
Sergei Glukhov




pgsql-hackers by date:

Previous
From: Rahila Syed
Date:
Subject: Re: show size of DSAs and dshash tables in pg_dsm_registry_allocations
Next
From: Bertrand Drouvot
Date:
Subject: Remove unused function parameters, part 1: contrib