Re: Make CLUSTER MVCC-safe

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Make CLUSTER MVCC-safe
Дата
Msg-id 28941.1175995878@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Make CLUSTER MVCC-safe  (Heikki Linnakangas <heikki@enterprisedb.com>)
Список pgsql-patches
Heikki Linnakangas <heikki@enterprisedb.com> writes:
>> This patch makes CLUSTER MVCC-safe. Visibility information and update
>> chains are preserved like in VACUUM FULL.

> Here's an update, fixing conflict by Tom's recent commit of Simon's
> patch to skip WAL-inserts when archiving is not enabled.

Applied with revisions.  There were some bugs in it: you need to check
both xmin and tid when determining if one tuple chains to another,
and you can't separate MarkBufferDirty from the critical section that
writes xlog.  (I got around that by not keeping the working page in
buffers at all, the same way btree index build works; should be a bit
faster as well as more correct.)  It had some memory leakage too.

            regards, tom lane

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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: LIMIT/SORT optimization
Следующее
От: Tom Lane
Дата:
Сообщение: Re: RESET SESSION v2