Re:

From: Jeff Janes <jeff(dot)janes(at)gmail(dot)com>
To: Satyamnaidu Gokeda <satyamnaidu215(at)gmail(dot)com>
Cc: Pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Re:
Date: 2022-08-22 06:16:31
Message-ID: CAMkU=1xD-SmLEBEt-WOraGtM8swNW7_jrozpH20dhHdvfHZkkQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Tue, Aug 16, 2022, 3:21 PM Satyamnaidu Gokeda <satyamnaidu215(at)gmail(dot)com>
wrote:

> Hi Team,
> We have database size of 1.5GB we are facing issue connection getting
> timeout error..
> We have checked locking there are around 1600 long running query in
> pg_locks .. please find attached snap.
> DB load 70% after restart again long running query are running also db
> load increased.
>

That looks like just a handful of connections, each holding locks on a very
large number of partitions. That is not very much information. Pg_locks is
not the best place to start looking. With pg_stat_activity you can see the
actual query text, how long it has been running, and other details. Once
you have the query text, you can do an EXPLAIN to see how it will be
executed.

There are lots of kinds of timeouts. Please show the actual error message.

Cheers,

Jeff

In response to

  • at 2022-08-16 19:20:10 from Satyamnaidu Gokeda

Browse pgsql-admin by date

  From Date Subject
Next Message Mladen Gogala 2022-08-22 12:55:51 Re: Postgresql 14 performance
Previous Message Mladen Gogala 2022-08-22 01:16:29 Re: Postgresql 14 performance