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

From Tom Lane
Subject Re: HOT patch, missing things
Date
Msg-id 18274.1187100613@sss.pgh.pa.us
Whole thread Raw
In response to Re: HOT patch, missing things  ("Pavan Deolasee" <pavan.deolasee@gmail.com>)
Responses Re: HOT patch, missing things  (Gregory Stark <stark@enterprisedb.com>)
Re: HOT patch, missing things  ("Simon Riggs" <simon@2ndquadrant.com>)
List pgsql-hackers
"Pavan Deolasee" <pavan.deolasee@gmail.com> writes:
> What if we just track the amount of potentially dead space in the
> relation
> (somebody had suggested that earlier in the thread) ? Every committed
> UPDATE/DELETE and aborted UPDATE/INSERT would increment
> the dead space. Whenever page fragmentation is repaired, either during
> normal operation or during vacuum, the dead space is reduced by the
> amount of reclaimed space. Autovacuum triggers whenever the percentage
> of dead space increases beyond a threshold.

Doesn't this design completely fail to take index bloat into account?
Repairing heap fragmentation does not reduce the need for VACUUM to work
on the indexes.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: HOT patch, missing things
Next
From: Andrew Dunstan
Date:
Subject: Re: Testing the async-commit patch