Re: proc state as "Idle_in_transaction" in pg_stat_activity - Mailing list pgsql-admin

From David G. Johnston
Subject Re: proc state as "Idle_in_transaction" in pg_stat_activity
Date
Msg-id CAKFQuwYQaKfPsAugT8A=krEotKQ2BtgD9D9bbGPOfr7CORhGug@mail.gmail.com
Whole thread Raw
In response to proc state as "Idle_in_transaction" in pg_stat_activity  (postgann2020 s <postgann2020@gmail.com>)
List pgsql-admin
On Sun, Apr 12, 2020 at 5:37 AM postgann2020 s <postgann2020@gmail.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.

pgsql-admin by date:

Previous
From: postgann2020 s
Date:
Subject: proc state as "Idle_in_transaction" in pg_stat_activity
Next
From: Mark Steben
Date:
Subject: Help needed on optimizing query