Indexing dead tuples

Поиск
Список
Период
Сортировка
От Simon Riggs
Тема Indexing dead tuples
Дата
Msg-id 1125523531.3956.15.camel@localhost.localdomain
обсуждение исходный текст
Список pgsql-hackers
During CREATE INDEX we include all tuples, even if they are already dead
when we build an index.

What purpose does this serve?

A pre-existing transaction can't see the index, so there is no danger
that it can use the index and unknowingly avoid touching a valid row.
(If it *can* see the index, is there some benefit in that behaviour?)

I suggest that we should not include dead rows in an index when it is
created, to increase the speed of index creation in certain cases. This
also simplifies a number of the index build routines, which actually
contain special logic for handling dead rows.

Comments?

Best Regards, Simon Riggs




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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: 8.1 and syntax checking at create time
Следующее
От: Tom Lane
Дата:
Сообщение: Procedural language definitions (was Re: 8.1 and syntax checking at create time)