rewrite of RECENTLY DEAD tuples

Поиск
Список
Период
Сортировка
От Benjamin S.
Тема rewrite of RECENTLY DEAD tuples
Дата
Msg-id 20110217093851.00ce2a1b@pluto-lenny.milky.way
обсуждение исходный текст
Ответы Re: rewrite of RECENTLY DEAD tuples  (Noah Misch <noah@leadboat.com>)
Список pgsql-hackers
Hello list,

ATRewriteTable in tablecmds.c uses SnapshotNow to rewrite and thus
does not copy RECENTLY DEAD tuples. But copy_heap_data in cluster.c
uses SnapshotAny and copys RECENTLY DEAD tuples to the new heap
file.

I don't understand why it is not needed in the first case. In the
second case I guess that there may be still a transaction with an
older snapshot running which should be able to open the rewrited
table and see the older (RECENTLY DEAD) tuple. Why must a
transaction in the first case not be able to do so also?

Regards
Benjamin


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

Предыдущее
От: Lukas Eder
Дата:
Сообщение: Re: Fwd: [JDBC] Weird issues when reading UDT from stored function
Следующее
От: yamt@mwd.biglobe.ne.jp (YAMAMOTO Takashi)
Дата:
Сообщение: Re: SSI bug?