Re: pgsql: Add relallfrozen to pg_class - Mailing list pgsql-committers

From Melanie Plageman
Subject Re: pgsql: Add relallfrozen to pg_class
Date
Msg-id CAAKRu_b9MxbXbPFLShzRxgjV3kjxCZ-GrJHVBDvioa37bTgiow@mail.gmail.com
Whole thread Raw
In response to Re: pgsql: Add relallfrozen to pg_class  (Melanie Plageman <melanieplageman@gmail.com>)
List pgsql-committers
On Mon, Mar 3, 2025 at 11:48 AM Melanie Plageman
<melanieplageman@gmail.com> wrote:
>
> On Mon, Mar 3, 2025 at 11:44 AM Álvaro Herrera <alvherre@alvh.no-ip.org> wrote:
> >
> > I'm confused about this.  Why was the new value added to pg_class
> > instead of to the pgstat system?  I don't think relallvisible is a good
> > precedent, because as you write here, that one is used for planning,
> > which has different requirements.  For vacuuming metrics we rely on
> > pgstat.
>
> We use relpages and reltuples from pg_class in
> relation_needs_vacanalyze() in the same way relallfrozen is being used
> here.

Sorry reltuples only (not relpages).

- Melanie



pgsql-committers by date:

Previous
From: Andres Freund
Date:
Subject: Re: pgsql: Add relallfrozen to pg_class
Next
From: Tom Lane
Date:
Subject: pgsql: Fix broken handling of domains in atthasmissing logic.