Re: Invisible Indexes

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: Invisible Indexes
Дата
Msg-id 3cbca94b-1e63-cf82-56d8-42b4a11219be@2ndQuadrant.com
обсуждение исходный текст
Ответ на Re: Invisible Indexes  (Peter Geoghegan <pg@bowt.ie>)
Список pgsql-hackers

On 06/18/2018 05:44 PM, Peter Geoghegan wrote:
> On Mon, Jun 18, 2018 at 2:36 PM, Andrew Dunstan
> <andrew.dunstan@2ndquadrant.com> wrote:
>> This is a MySQL feature, where an index is not considered by the planner.
>> Implementing it should be fairly straightforward, adding a new boolean to
>> pg_index, and options to CREATE INDEX and ALTER INDEX. I guess VISIBLE would
>> become a new unreserved keyword.
>> So, do we want this feature? If we do I'll go ahead and prepare a patch.
> I know that it's definitely a feature that I want.


Well, that's encouraging ;-)

> Haven't thought
> about the syntax, though.
>



I envisioned:

CREATE INDEX .... [NOT VISIBLE] ...;
ALTER INDEX ... [SET [NOT] VISIBLE] ...;


Let the bikeshedding begin :-)

cheers

andrew

-- 
Andrew Dunstan                https://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: Invisible Indexes
Следующее
От: Peter Geoghegan
Дата:
Сообщение: Re: [WIP] [B-Tree] Retail IndexTuple deletion