Re: Invisible Indexes

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: Invisible Indexes
Дата
Msg-id CA+Tgmobxpzdf184tH4jcnf=O=A_5rmWNUpmm3tumcFA-rksW+g@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Invisible Indexes  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Invisible Indexes  (Euler Taveira <euler@timbira.com.br>)
Re: Invisible Indexes  (Andres Freund <andres@anarazel.de>)
Re: Invisible Indexes  (Andrew Dunstan <andrew.dunstan@2ndquadrant.com>)
Список pgsql-hackers
On Mon, Jun 18, 2018 at 6:12 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Peter Geoghegan <pg@bowt.ie> writes:
>> On Mon, Jun 18, 2018 at 2:57 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>>> I think the actually desirable way to handle this sort of thing is through
>>> an "index advisor" sort of plugin, which can hide a given index from the
>>> planner without any globally visible side-effects.
>
>> The globally visible side-effects are the point, though. Some users
>> desire cheap insurance against dropping what turns out to be the wrong
>> index.
>
> Perhaps there are use-cases where you want globally visible effects,
> but the primary use-case Andrew cited (i.e. EXPLAIN experimentation)
> would not want that.
>
> Anyway, if we do it with a GUC, the user can control the scope of
> the effects.

Yeah, I agree that a GUC seems more powerful and easier to roll out.
A downside is that there could be cached plans still using that old
index.  If we did DDL on the index we could be sure they all got
invalidated, but otherwise how do we know?

BTW, like you, I seem to remember somebody writing an extension that
did added a GUC that did exactly this, and demoing it at a conference.
Maybe Oleg or Teodor?

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Fast default stuff versus pg_upgrade
Следующее
От: Euler Taveira
Дата:
Сообщение: Re: Invisible Indexes