Re: Disabling an index temporarily - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: Disabling an index temporarily
Date
Msg-id CAB7nPqT_k+KqQ2m4x+uQkSsxNV4bCGO7NG3_DTGFnDBGPJVjmg@mail.gmail.com
Whole thread Raw
In response to Re: Disabling an index temporarily  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Mon, Dec 14, 2015 at 12:27 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Certainly, there's opportunities to improve the flexibility of the
> index-disable specifications in the plug-in Oleg and Teodor did.  But
> I think that that is the right basic approach: some sort of SET command,
> not anything that alters the catalogs.  We already have lots of
> infrastructure that could handle desires like having specific values
> active in only some sessions.

ISTM that an intuitive answer is something like enable_indexscan_list
= 'index1, index2' and not worry about any disable switch, that's more
in line with the equivalent planner-level GUC.
-- 
Michael



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Disabling an index temporarily
Next
From: Peter Geoghegan
Date:
Subject: Re: Using quicksort for every external sort run