pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Wells Oliver <wells.oliver@gmail.com>
To: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: Getting relevant table value as pertains to autovacuum_analyze_scale_factor (and vacuum scale factor)?
Date: Tue, 16 Feb 2021 04:34:28 +0100
Message-ID: <fd6781467e16402b2f63ca12027a9c4e2de59b19.camel@cybertec.at> (raw)
In-Reply-To: <CAOC+FBVYR1iLaNdHnkdXL2j0+-nQ3ekZY__V-0vkyMx3eKeedA@mail.gmail.com>
References: <CAOC+FBVYR1iLaNdHnkdXL2j0+-nQ3ekZY__V-0vkyMx3eKeedA@mail.gmail.com>

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






view thread (2+ messages)

Message-ID: <fd6781467e16402b2f63ca12027a9c4e2de59b19.camel@cybertec.at>
Permalink:  ../fd6781467e16402b2f63ca12027a9c4e2de59b19.camel@cybertec.at/
Also on:    postgresql.org/message-id/fd6781467e16402b2f63ca12027a9c4e2de59b19.camel@cybertec.at

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: laurenz.albe@cybertec.at, wells.oliver@gmail.com
  Subject: Re: Getting relevant table value as pertains to autovacuum_analyze_scale_factor (and vacuum scale factor)?
  In-Reply-To: <fd6781467e16402b2f63ca12027a9c4e2de59b19.camel@cybertec.at>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox