Re: HOT patch, missing things - Mailing list pgsql-hackers

From Pavan Deolasee
Subject Re: HOT patch, missing things
Date
Msg-id 2e78013d0708080415g5ea401c9u4d8e80a23c1e664a@mail.gmail.com
Whole thread Raw
In response to Re: HOT patch, missing things  (Gregory Stark <stark@enterprisedb.com>)
Responses Re: HOT patch, missing things  (Decibel! <decibel@decibel.org>)
List pgsql-hackers


On 8/8/07, Gregory Stark <stark@enterprisedb.com> wrote:


It seems that previously percentage of tuples made sense because dead tuples
took about the same amount of space as new tuples that need that space. But
line pointers take much less space than the new tuples so the number of dead
line pointers we need before we can recover a useful amount of space depends
on the ratio of line pointer size to tuple size.

Perhaps we should be gathering "bytes of dead tuples" in pg_stat not just
n_dead_tuples.



This is a good idea. Alternatively, we can guess percentage of dead space
using the average tuple size, number of dead tuples and number of reltuples.

Another thing to worry about is index bloats. Even though a redirect-dead
line pointer takes only 4 bytes in the heap, the associated dead space
in the index is as large as any other index tuple and the index
might be in a need for vacuum.


Thanks,
Pavan

--
Pavan Deolasee
EnterpriseDB     http://www.enterprisedb.com

pgsql-hackers by date:

Previous
From: Gregory Stark
Date:
Subject: Re: HOT patch, missing things
Next
From: "Brendan Jurd"
Date:
Subject: Function structure in formatting.c