Re: do only critical work during single-user vacuum? - Mailing list pgsql-hackers

From John Naylor
Subject Re: do only critical work during single-user vacuum?
Date
Msg-id CAFBsxsHiMar24Uf+86bi7PdK42bCZBNXz1tf2YBVuJEk9peFVg@mail.gmail.com
Whole thread Raw
In response to Re: do only critical work during single-user vacuum?  ("Bossart, Nathan" <bossartn@amazon.com>)
List pgsql-hackers
On Tue, Jan 11, 2022 at 9:20 PM Justin Pryzby <pryzby@telsasoft.com> wrote:
>
> On Tue, Jan 11, 2022 at 07:58:56PM -0500, John Naylor wrote:
> > +             // FIXME: also check reloption
> > +             // WIP: 95% is a starting point for discussion
> > +             if ((table_xid_age < autovacuum_freeze_max_age * 0.95) ||
> > +                     (table_mxid_age < autovacuum_multixact_freeze_max_age * 0.95))
> > +                     continue;
>
> Should be &&

Thanks! Will fix.

> Should this emergency vacuum "order by age() DESC" ?

That would add complexity and only save a marginal amount of time.

-- 
John Naylor
EDB: http://www.enterprisedb.com



pgsql-hackers by date:

Previous
From: John Naylor
Date:
Subject: Re: do only critical work during single-user vacuum?
Next
From: Magnus Hagander
Date:
Subject: Re: 2022-01 Commitfest