Re: Improving count(*)

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Improving count(*)
Дата
Msg-id 20234.1132267039@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Improving count(*)  (Martijn van Oosterhout <kleptog@svana.org>)
Список pgsql-hackers
Martijn van Oosterhout <kleptog@svana.org> writes:
> Now, lets say you add a field to the tuple which you the position of
> the index entry. You can only reasonably do this for one index, say the
> primary key. Now you have a two-way link the updating becomes much
> quicker, at the cost of even more overhead.

I think this is fairly infeasible --- consider what it does to the cost
and (lack of) atomicity of an index page split, for instance.
        regards, tom lane


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

Предыдущее
От: "Kevin Grittner"
Дата:
Сообщение: Re: Improving count(*)
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: Optional postgres database not so optional in 8.1