From: | Julien Rouhaud <rjuju123(at)gmail(dot)com> |
---|---|
To: | Michael Paquier <michael(at)paquier(dot)xyz> |
Cc: | Shayon Mukherjee <shayonj(at)gmail(dot)com>, Sami Imseih <samimseih(at)gmail(dot)com>, Robert Treat <rob(at)xzilla(dot)net>, David Rowley <dgrowleyml(at)gmail(dot)com>, jian he <jian(dot)universality(at)gmail(dot)com>, Gurjeet Singh <gurjeet(at)singh(dot)im>, Nathan Bossart <nathandbossart(at)gmail(dot)com>, pgsql-hackers(at)lists(dot)postgresql(dot)org |
Subject: | Re: [PATCH] Proposal to Enable/Disable Index using ALTER INDEX |
Date: | 2025-08-04 04:34:14 |
Message-ID: | aJA4RuufMrGGPlrl@jrouhaud |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Mon, Aug 04, 2025 at 01:19:46PM +0900, Michael Paquier wrote:
> On Sat, Aug 02, 2025 at 03:09:19PM -0400, Shayon Mukherjee wrote:
> > Per this plan, this would mean that pg_hint_plan would need to
> > support index-level hints, and it’s not a massive / impossible
> > task. But it also means that both systems aren't fighting/overriding
> > each other or making it difficult for users to understand when
> > exactly an index is being used or not. Ultimately, this would also
> > mean that `ALTER INDEX INVISIBLE` is a one-way door, and there is
> > only one way to control index visibility in core, which makes sense
> > to me.
>
> Sami has proposed a patch for pg_hint_plan that goes in the direction
> of a DisableIndex hint, which is doable even if it requires some work
> inside the extension code like some refactoring:
> https://github.com/ossc-db/pg_hint_plan/issues/226
>
> So I cannot say much about this proposal for core, but for
> pg_hint_plan I'm looking at adding that for the v18 release of the
> module, which is planned for the end of August/beginning of September.
FWIW if anyone actually needs it, that feature had existed for decades in
plantuner: http://www.sigaev.ru/git/gitweb.cgi?p=plantuner.git;a=summary
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Paquier | 2025-08-04 04:39:10 | Re: [PATCH] Proposal to Enable/Disable Index using ALTER INDEX |
Previous Message | David G. Johnston | 2025-08-04 04:33:06 | Re: A little cosmetic to convert_VALUES_to_ANY() |