Re: Error correction for n_dead_tuples

Поиск
Список
Период
Сортировка
От ITAGAKI Takahiro
Тема Re: Error correction for n_dead_tuples
Дата
Msg-id 20070220104402.5E49.ITAGAKI.TAKAHIRO@oss.ntt.co.jp
обсуждение исходный текст
Ответ на Re: Error correction for n_dead_tuples  (Alvaro Herrera <alvherre@commandprompt.com>)
Список pgsql-patches
Alvaro Herrera <alvherre@commandprompt.com> wrote:

> Please put this on hold until we decide what to do with Heikki's patch
> to update OldestXmin during vacuum.

Yes, I think his patch is very useful, but it has a little conflict
with my patch.

> One idea is to count the tuples actually cleared during vacuum.  Another
> idea is to reread pgstat data after each OldestXmin recalculation to get
> accurate dead tuple counting.  Neither of these seem very satisfying.

I'm thinking to use the larger value of follows:
 - dead tuples statistic count at the beginning of vacuum
 - count the tuples actually cleared during vacuum

The latter is usually larger with Heikki's patch. In the other hand,
the formar is larger in only cases when many DELETEs were rollbacked.

Regards,
---
ITAGAKI Takahiro
NTT Open Source Software Center



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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Error correction for n_dead_tuples
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: [pgsql-patches] Patch to avoid gprofprofilingoverwrites