"Mario Weilguni" <mario(dot)weilguni(at)icomedias(dot)com> writes:
> That brings me to another point, can't the
> statistics collector used for that?
Hmm, that would be a different way of attacking the problem. Not sure
offhand which is better, but it'd surely be worth considering both.
Note that collecting of dead-tuple counts requires input from aborted
transactions as well as successful ones. I don't recall whether the
stats collector currently collects anything from aborted xacts; that
might or might not be a sticky point.
regards, tom lane