From: | ITAGAKI Takahiro <itagaki(dot)takahiro(at)oss(dot)ntt(dot)co(dot)jp> |
---|---|
To: | alvherre(at)commandprompt(dot)com |
Cc: | pgsql-patches(at)postgresql(dot)org |
Subject: | Re: Error correction for n_dead_tuples |
Date: | 2007-02-20 02:03:33 |
Message-ID: | 20070220104402.5E49.ITAGAKI.TAKAHIRO@oss.ntt.co.jp |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-patches |
Alvaro Herrera <alvherre(at)commandprompt(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2007-02-20 02:31:27 | Re: [pgsql-patches] Patch to avoid gprofprofilingoverwrites |
Previous Message | Bruce Momjian | 2007-02-20 01:42:53 | Re: Error correction for n_dead_tuples |