Re: Getting relevant table value as pertains to autovacuum_analyze_scale_factor (and vacuum scale factor)?

From: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
To: Wells Oliver <wells(dot)oliver(at)gmail(dot)com>, pgsql-admin <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Getting relevant table value as pertains to autovacuum_analyze_scale_factor (and vacuum scale factor)?
Date: 2021-02-16 03:34:28
Message-ID: fd6781467e16402b2f63ca12027a9c4e2de59b19.camel@cybertec.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Mon, 2021-02-15 at 16:05 -0800, Wells Oliver wrote:
> Where can I pull this from? I am guessing it's just number of dead tuples / row count,
> but Im not exactly sure. Would like to show these factors per relation in an overall view I have.

The row count of the table is taken from pg_class.reltuples, and the number
of dead tuples is taken from the "pg_stat_get_dead_tuples" function.

Note that the autovacuum parameters can be overridden by storage parameters
on the table.

Yours,
Laurenz Albe
--
Cybertec | https://www.cybertec-postgresql.com

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Peter Eisentraut 2021-02-16 06:11:44 Re: pg_baseback could not connect in AWS linux 2
Previous Message Wells Oliver 2021-02-16 00:05:08 Getting relevant table value as pertains to autovacuum_analyze_scale_factor (and vacuum scale factor)?