Re: proc state as "Idle_in_transaction" in pg_stat_activity

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: postgann2020 s <postgann2020(at)gmail(dot)com>
Cc: pgsql-admin <pgsql-admin(at)postgresql(dot)org>
Subject: Re: proc state as "Idle_in_transaction" in pg_stat_activity
Date: 2020-04-12 16:15:38
Message-ID: CAKFQuwYQaKfPsAugT8A=krEotKQ2BtgD9D9bbGPOfr7CORhGug@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Sun, Apr 12, 2020 at 5:37 AM postgann2020 s <postgann2020(at)gmail(dot)com>
wrote:

> If we ran same proc from psql and pgadmin we could able to run
> successfully and able to get response and no "Idle_in_transaction" state.
> [...]
> We are not sure from where we have to start troubleshooting.
>

Probably something isn't issuing "COMMIT;" or "con.commit();" when it
should be.

David J.

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Mark Steben 2020-04-13 14:07:47 Help needed on optimizing query
Previous Message postgann2020 s 2020-04-12 12:37:15 proc state as "Idle_in_transaction" in pg_stat_activity