Re: [SQL] commit not completing - how to investigate? - Mailing list pgsql-sql

From Tom Lane
Subject Re: [SQL] commit not completing - how to investigate?
Date
Msg-id 29711.1500646472@sss.pgh.pa.us
Whole thread Raw
In response to [SQL] commit not completing - how to investigate?  (Tim Dudgeon <tdudgeon.ml@gmail.com>)
Responses Re: [SQL] commit not completing - how to investigate?  (Tim Dudgeon <tdudgeon.ml@gmail.com>)
List pgsql-sql
Tim Dudgeon <tdudgeon.ml@gmail.com> writes:
> I have a situation where the pg_stat_activity view shows that can have 
> some processes that are idle and not completing. In some cases the 
> statement being executed is COMMIT.

Are you sure you're interpreting the view properly?  If the session
state is shown as idle, it's idle.  We used to show the query field
as empty in that case, but recent PG versions allow the query field
to continue to show the last-completed command.
        regards, tom lane



pgsql-sql by date:

Previous
From: Tim Dudgeon
Date:
Subject: [SQL] commit not completing - how to investigate?
Next
From: Tim Dudgeon
Date:
Subject: Re: [SQL] commit not completing - how to investigate?