Re: Indexing dead tuples

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Indexing dead tuples
Дата
Msg-id 5483.1125529585@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Indexing dead tuples  (Andrew - Supernews <andrew+nonews@supernews.com>)
Ответы Re: Indexing dead tuples  (Simon Riggs <simon@2ndquadrant.com>)
Список pgsql-hackers
Andrew - Supernews <andrew+nonews@supernews.com> writes:
> On 2005-08-31, Simon Riggs <simon@2ndquadrant.com> wrote:
>> 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,

> Yes, it can; the catalog is read in SnapshotNow rather than in the query
> snapshot.

In fact, it had better be able to, since once the CREATE INDEX commits,
pre-existing xacts are responsible to insert index entries for anything
they insert into the table.
        regards, tom lane


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

Предыдущее
От: Andrew - Supernews
Дата:
Сообщение: Re: Indexing dead tuples
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Minimally avoiding Transaction Wraparound in VLDBs