Re: Add pg_stat_autovacuum_priority - Mailing list pgsql-hackers

From Sami Imseih
Subject Re: Add pg_stat_autovacuum_priority
Date
Msg-id CAA5RZ0uqVoixpgBRrge0GZY1Ofeitk3q-Rd4GrJ29W0XpVX2TQ@mail.gmail.com
Whole thread Raw
In response to Re: Add pg_stat_autovacuum_priority  (Álvaro Herrera <alvherre@kurilemu.de>)
List pgsql-hackers
> > 0002 introduces the view with documentation and testing in
> > vacuum.c (xid age and mxid age scores are not tested as
> > they require xid_wraparound to consume enough XIDs to
> > trigger a score, which will cost too much time for a
> > regression test).
>
> After this patch, there are three copies of the combined call to
> pgstat_fetch_stat_tabentry_ext() and relation_needs_vacanalyze().  Can
> we avoid that, ideally reducing to only one such?  Or, at least, it
> looks like recheck_relation_needs_vacanalyze() may no longer need to
> exist at all.

recheck_relation_needs_vacanalyze() can be removed and replace
with compute_autovac_score(). I was trying to minimize refactoring,
but this seems worthwhile to do.

--
Sami



pgsql-hackers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: Shared hash table allocations
Next
From: Álvaro Herrera
Date:
Subject: Re: [PATCH] Add support for INSERT ... SET syntax