Re: Proposal to Enable/Disable Index using ALTER INDEX

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Sami Imseih <samimseih(at)gmail(dot)com>
Cc: David Rowley <dgrowleyml(at)gmail(dot)com>, Robert Treat <rob(at)xzilla(dot)net>, Shayon Mukherjee <shayonj(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" <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Proposal to Enable/Disable Index using ALTER INDEX
Date: 2025-07-18 03:09:57
Message-ID: CAKFQuwaKrAVqRCCvwz515hYqP-imX=JG60L_j6qn9dRA0FQKDQ@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thursday, July 17, 2025, Sami Imseih <samimseih(at)gmail(dot)com> wrote:

>
> My concern with #1 is that when we one day do get query hints, we'll
>> be left with a bunch of redundant ways to influence planner behaviour.
>
>
I’d rather not stop accepting improvements of this sort until we get a
proper planner hint into core.

I’d argue we should not provide the ALTER option without the GUC, for
> more granular control.
>

Agreed. DBAs should do research. Optimistic ones can then use alter index
to efficiently deploy their informed decisions throughout their systems.
They have GUC as a temporary fallback mechanism should they need it.
Pessimistic ones can just micro-manage using the GUC.

Unless someone is willing to try and get “The PostgreSQL team’s blessed
guide to index management” into the documentation as well we should
probably just accept this will be a bit tool belt approach and there will
be tools that for one person’s approach are not useful. That does not mean
they need to be removed (so long as they were added intentionally).

David J.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Kapila 2025-07-18 03:28:04 Re: POC: enable logical decoding when wal_level = 'replica' without a server restart
Previous Message Andy Fan 2025-07-18 02:42:32 Re: simple patch for discussion