Re: How to debug a connection that's "active" but hanging? - Mailing list pgsql-general

From Vijaykumar Jain
Subject Re: How to debug a connection that's "active" but hanging?
Date
Msg-id CAM+6J96Leay_mMqvP6kg6sqrD2KZrWYOmGkThictEz2PK=HhcA@mail.gmail.com
Whole thread Raw
In response to Re: How to debug a connection that's "active" but hanging?  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: How to debug a connection that's "active" but hanging?  (Jurrie Overgoor <postgresql-mailinglist@jurr.org>)
List pgsql-general
On Mon, 12 Jul 2021 at 23:16, Tom Lane <tgl@sss.pgh.pa.us> wrote:

The backtraces you captured look like the query is not "hung", it's
just computing away.


He mentioned earlier that the query was hung as 'active' for 8 hours and on.

incase this is due to bad plan,
@Jurrie Overgoor  is it also possible for you to run manually 

`vacuumdb  -a -v`  from the terminal, each time before you run your test suite for some runs, do you still get the same issue?

I have a feeling repeated runs may have caused a lot of bloat on some tables which might have not been reclaimed by autovacuum runs.

 



pgsql-general by date:

Previous
From: Rich Shepard
Date:
Subject: Re: Use of '&' as table prefix in query [RESOLVED]
Next
From: Jurrie Overgoor
Date:
Subject: Re: How to debug a connection that's "active" but hanging?