From: Thomas Kellerer <spam_eater@gmx.net>
To: pgsql-admin@postgresql.org
Subject: Re: Why are a lot of ROLLBACK queries in idle state
Date: Fri, 18 Nov 2016 11:26:03 +0100
Message-ID: <o0mkvn$d1p$1@blaine.gmane.org> (raw)
In-Reply-To: <1479462927604-5930917.post@n3.nabble.com>
References: <1479462927604-5930917.post@n3.nabble.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>
rajan schrieb am 18.11.2016 um 10:55:
> When querying the pg_stat_acitivity I find a lot of ROLLBACK queries in idle
> state. Can someone help me know why?
>
> Thanks in advance.
>
> select query, state, waiting, query_start from pg_stat_activity where query
> ilike '%rollback%';
The _session_ is idle, not the query.
Quote from the manual:
If the session is idle, the "query" column of pg_stat_activity shows the last executed statement in that session.
So this simply means all those sessions properly ended their transaction using a ROLLBACK statement.
--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
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 using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: spam_eater@gmx.net
Subject: Re: Why are a lot of ROLLBACK queries in idle state
In-Reply-To: <o0mkvn$d1p$1@blaine.gmane.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