Re: Slowness - Mailing list pgsql-admin

From Laurenz Albe
Subject Re: Slowness
Date
Msg-id 1ce81f428a5e42bc263f7fece688b084a46f28af.camel@cybertec.at
Whole thread
In response to Re: Slowness  (Raj <rajeshkumar.dba09@gmail.com>)
Responses Re: Slowness
List pgsql-admin
On Mon, 2026-04-13 at 23:13 +0530, Raj wrote:
> If I start with normal health check top, free -h, patronictl list, and all status
> of components such as etcd, haproxy etcd pgnouncer , then stat user tables,
> pgstatactivity, pgstatstatements and error log. Apart from this, what dba should do?

I'm not sure what a "normal health check" is.

I thought your problem was that the some statements are too slow.
That is not directly connected to the health of the database.

To deal with slow statements, you first have to find them.
Tools are log_min_duration_statement and pg_stat_statements.

Then you have to make the statements faster.  The tool here is
EXPLAIN (ANALYZE, BUFFERS).  But you need some experience to be
able to read execution plans, figure out where the problem is
and fix that problem.

Yours,
Laurenz Albe



pgsql-admin by date:

Previous
From: Ron Johnson
Date:
Subject: Re: Slowness
Next
From: Roland Müller
Date:
Subject: Re: sslmode - detecting local docker