Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c7gOr-00022c-VF for pgsql-admin@arkaria.postgresql.org; Fri, 18 Nov 2016 10:28:06 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1c7gOq-00011d-PW for pgsql-admin@arkaria.postgresql.org; Fri, 18 Nov 2016 10:28:04 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1c7gN9-0007JX-Rd for pgsql-admin@postgresql.org; Fri, 18 Nov 2016 10:26:19 +0000 Received: from [195.159.176.226] (helo=blaine.gmane.org) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1c7gN7-0000IL-6u for pgsql-admin@postgresql.org; Fri, 18 Nov 2016 10:26:18 +0000 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1c7gMv-0003MG-JZ for pgsql-admin@postgresql.org; Fri, 18 Nov 2016 11:26:05 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-admin@postgresql.org From: Thomas Kellerer Subject: Re: Why are a lot of ROLLBACK queries in idle state Date: Fri, 18 Nov 2016 11:26:03 +0100 Lines: 19 Message-ID: References: <1479462927604-5930917.post@n3.nabble.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@blaine.gmane.org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666 In-Reply-To: <1479462927604-5930917.post@n3.nabble.com> X-Host-Lookup-Failed: Reverse DNS lookup failed for 195.159.176.226 (failed) X-Pg-Spam-Score: 0.8 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org 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