Re: Table health - Mailing list pgsql-admin

From Laurenz Albe
Subject Re: Table health
Date
Msg-id 2f4c4edac9196af943d8097150f65fa96f7ea97e.camel@cybertec.at
Whole thread Raw
In response to Table health  (Rajesh Kumar <rajeshkumar.dba09@gmail.com>)
List pgsql-admin
On Tue, 2023-10-17 at 23:23 +0530, Rajesh Kumar wrote:
> I have been asked to check table health of specific big table.
>
> What are list of things I have to check?

Look at pg_stat_all_tables to see if the number of dead tuples
is excessive and if autovacuum and autoanalyze are running as
they should.

Look at pg_class to see if "relfrozenxid" and "relminmxid" are
far from the danger zone.

Run the function pgstattuple_approx() to see if the table is bloated.

Yours,
Laurenz Albe



pgsql-admin by date:

Previous
From: Zhaoxun Yan
Date:
Subject: Re: postgresql lost connection to repmgr arbitrarily
Next
From: Alexander Gesser
Date:
Subject: connection timeout expired