Re: Indices for select count(*)?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Indices for select count(*)?
Дата
Msg-id 21985.1135363109@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Indices for select count(*)?  (Martijn van Oosterhout <kleptog@svana.org>)
Список pgsql-general
Martijn van Oosterhout <kleptog@svana.org> writes:
> AFAICS two big problems with using an index type:

> 1. The index isn't told when the tuple is deleted.

Hm, good point ... we could make it do so but for ordinary deletes it'd
be a waste of cycles to open indexes at all.

> 2. The server expects to be able to lookup an index.

Only if there is a WHERE operator that matches the index's opclass.
This hypothetical index type would probably have one dummy opclass
containing no operators.

            regards, tom lane

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

Предыдущее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: Indices for select count(*)?
Следующее
От: Michael Adler
Дата:
Сообщение: Re: HINT: Perhaps out of disk space?