Re: Proposal to Enable/Disable Index using ALTER INDEX - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Proposal to Enable/Disable Index using ALTER INDEX
Date
Msg-id 74f05bcf-21cc-44df-a679-e0464cd78a89@eisentraut.org
Whole thread Raw
In response to Re: Proposal to Enable/Disable Index using ALTER INDEX  (Shayon Mukherjee <shayonj@gmail.com>)
List pgsql-hackers
On 23.09.24 22:51, Shayon Mukherjee wrote:
> I am happy to draft a patch for this as well. I think I have a working
> idea so far of where the necessary checks might go. However if you don’t
>   mind, can you elaborate further on how the effect would be similar to
> enable_indexscan?

Planner settings like enable_indexscan used to just add a large number 
(disable_cost) to the estimated plan node costs.  It's a bit more 
sophisticated in PG17.  But in any case, I imagine "disabling an index" 
could use the same mechanism.  Or maybe not, maybe the setting would 
just completely ignore the index.



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: pgsql: Improve default and empty privilege outputs in psql.
Next
From: Andres Freund
Date:
Subject: Re: CSN snapshots in hot standby