Re: Vacuumdb on a table - Mailing list pgsql-admin

From Scott Ribe
Subject Re: Vacuumdb on a table
Date
Msg-id 656F86ED-DB7D-4D9D-A94E-FC20C84B53EA@elevated-dev.com
Whole thread Raw
In response to Re: Vacuumdb on a table  (Keith <keith@keithf4.com>)
List pgsql-admin
> On Oct 18, 2023, at 10:31 PM, Keith <keith@keithf4.com> wrote:
>
> Check pg_stat_activity or pg_locks to see if there are any open transactions or locks on the table in question.

pg_stat_statements is good too

write a couple of queries to find:

- queries run most often
- queries that are slowest
- queries that are most executions x time

the first one is good for finding badly-behaved applications or scripts; the others can point out need for indexes




pgsql-admin by date:

Previous
From: Rajesh Kumar
Date:
Subject: Cluster creation in Openshift container
Next
From: Tomek
Date:
Subject: Re: Vacuumdb on a table