pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Getting relevant table value as pertains to autovacuum_analyze_scale_factor (and vacuum scale factor)?
2+ messages / 2 participants
[nested] [flat]

* Getting relevant table value as pertains to autovacuum_analyze_scale_factor (and vacuum scale factor)?
@ 2021-02-16 00:05  Wells Oliver <wells.oliver@gmail.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Wells Oliver @ 2021-02-16 00:05 UTC (permalink / raw)
  To: pgsql-admin

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.

Thanks.

-- 
Wells Oliver
wells.oliver@gmail.com <wellsoliver@gmail.com>

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Getting relevant table value as pertains to autovacuum_analyze_scale_factor (and vacuum scale factor)?
@ 2021-02-16 03:34  Laurenz Albe <laurenz.albe@cybertec.at>
  parent: Wells Oliver <wells.oliver@gmail.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Laurenz Albe @ 2021-02-16 03:34 UTC (permalink / raw)
  To: Wells Oliver <wells.oliver@gmail.com>; 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






^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2021-02-16 03:34 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-02-16 00:05 Getting relevant table value as pertains to autovacuum_analyze_scale_factor (and vacuum scale factor)? Wells Oliver <wells.oliver@gmail.com>
2021-02-16 03:34 ` Laurenz Albe <laurenz.albe@cybertec.at>

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