pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jurrie Overgoor <postgresql-mailinglist@jurr.org>
To: pgsql-general@lists.postgresql.org
Subject: Re: How to debug a connection that's "active" but hanging?
Date: Thu, 15 Jul 2021 10:30:24 +0200
Message-ID: <3f408663-0754-0fc5-a4d0-0e1dcfb6b832@jurr.org> (raw)
In-Reply-To: <3164615.1626124867@sss.pgh.pa.us>
References: <e15b9bf5-4d1f-5abd-5e71-78894bea4916@jurr.org>
	<CAM+6J97mNj4gFnC=wYpsy5L+igEE8gwifVhaoXm-BE8BYX2PPQ@mail.gmail.com>
	<eb266d47-dd5c-3622-aa5a-fd45ed71d9de@jurr.org>
	<2985639.1626111990@sss.pgh.pa.us>
	<CAM+6J96Leay_mMqvP6kg6sqrD2KZrWYOmGkThictEz2PK=HhcA@mail.gmail.com>
	<1b783c37-0712-8b21-f1e3-3ac1f8c4f096@jurr.org>
	<3164615.1626124867@sss.pgh.pa.us>

On 12-07-2021 23:21, Tom Lane wrote:
> Jurrie Overgoor <postgresql-mailinglist@jurr.org> writes:
>> Is this considered a bug in PostgreSQL, or
>> am I misusing the database engine by doing DROP DATABASE and CREATE
>> DATABASE over and over again?
> It's not a bug.  I suppose in a perfect world the stats would
> automatically be up to date all the time, but in the real world
> it seems like the cost of that would be exorbitant.


I see - that makes sense.

To fix this issue, I made sure a `VACUUM` is done prior to running the 
unit tests. It's run as the database owner, so not all relations are 
vacuumed. But it seems to vacuum the necessary relations, so no more 
hanging queries.

Thanks Tom and Vijaykumar for your support!

With kind regards,

Jurrie






view thread (8+ messages)

Message-ID: <3f408663-0754-0fc5-a4d0-0e1dcfb6b832@jurr.org>
Permalink:  ../3f408663-0754-0fc5-a4d0-0e1dcfb6b832@jurr.org/
Also on:    postgresql.org/message-id/3f408663-0754-0fc5-a4d0-0e1dcfb6b832@jurr.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: postgresql-mailinglist@jurr.org
  Subject: Re: How to debug a connection that's "active" but hanging?
  In-Reply-To: <3f408663-0754-0fc5-a4d0-0e1dcfb6b832@jurr.org>
  References: <e15b9bf5-4d1f-5abd-5e71-78894bea4916@jurr.org> <CAM+6J97mNj4gFnC=wYpsy5L+igEE8gwifVhaoXm-BE8BYX2PPQ@mail.gmail.com> <eb266d47-dd5c-3622-aa5a-fd45ed71d9de@jurr.org> <2985639.1626111990@sss.pgh.pa.us> <CAM+6J96Leay_mMqvP6kg6sqrD2KZrWYOmGkThictEz2PK=HhcA@mail.gmail.com> <1b783c37-0712-8b21-f1e3-3ac1f8c4f096@jurr.org> <3164615.1626124867@sss.pgh.pa.us> <3f408663-0754-0fc5-a4d0-0e1dcfb6b832@jurr.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox