Re: [HACKERS] More stats about skipped vacuums - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [HACKERS] More stats about skipped vacuums
Date
Msg-id 8327.1511657959@sss.pgh.pa.us
Whole thread Raw
In response to Re: [HACKERS] More stats about skipped vacuums  (Michael Paquier <michael.paquier@gmail.com>)
Responses Re: [HACKERS] More stats about skipped vacuums  (Michael Paquier <michael.paquier@gmail.com>)
List pgsql-hackers
Michael Paquier <michael.paquier@gmail.com> writes:
> I am not arguing about skipped vacuuum data here (don't think much of
> it by the way), but of the number of index scans done by the last
> vacuum or autovacuum. This helps in tunning autovacuum_work_mem and
> maintenance_work_mem. The bar is still too high for that?

I'd say so ... that's something the average user will never bother with,
and even if they knew to bother, it's far from obvious what to do with
the information.  Besides, I don't think you could just save the number
of scans and nothing else.  For it to be meaningful, you'd at least have
to know the prevailing work_mem setting and the number of dead tuples
removed ... and then you'd need some info about your historical average
and maximum number of dead tuples removed, so that you knew whether the
last vacuum operation was at all representative.  So this is sounding
like quite a lot of new counters, in support of perhaps 0.1% of the
user population.  Most people are just going to set maintenance_work_mem
as high as they can tolerate and call it good.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: [HACKERS] More stats about skipped vacuums
Next
From: Mark Dilger
Date:
Subject: Re: [HACKERS] PATCH: multivariate histograms and MCV lists