Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VJrg2-0005zb-MP for pgsql-performance@arkaria.postgresql.org; Wed, 11 Sep 2013 21:10:18 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VJrg2-0005uh-3W for pgsql-performance@arkaria.postgresql.org; Wed, 11 Sep 2013 21:10:18 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VJrg0-0005sy-Ke for pgsql-performance@postgresql.org; Wed, 11 Sep 2013 21:10:16 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VJrfx-00045g-NF for pgsql-performance@postgresql.org; Wed, 11 Sep 2013 21:10:16 +0000 Received: from intern.anarazel.de (unknown [88.128.80.11]) (Authenticated sender: andres@anarazel.de) by mail.anarazel.de (Postfix) with ESMTPSA id A3DA84E8003; Wed, 11 Sep 2013 23:10:10 +0200 (CEST) Date: Wed, 11 Sep 2013 23:10:08 +0200 From: Andres Freund To: Andrew Dunstan Cc: Josh Berkus , Jeff Janes , Amit Kapila , "pgsql-performance@postgresql.org" Subject: Re: Performance bug in prepared statement binding in 9.2? Message-ID: <20130911211008.GE1138556@alap2.anarazel.de> References: <51A79512.4020200@agliodbs.com> <51FAA1B8.6040809@agliodbs.com> <522E69F1.8070203@dunslane.net> <20130910122036.GF1024477@alap2.anarazel.de> <522F146D.2070908@dunslane.net> <5230B801.90507@agliodbs.com> <5230BF2F.8070600@dunslane.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5230BF2F.8070600@dunslane.net> X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org On 2013-09-11 15:06:23 -0400, Andrew Dunstan wrote: > > On 09/11/2013 02:35 PM, Josh Berkus wrote: > >All, > > > >We've confirmed that this issue is caused by having long-running idle > >transactions on the server. When we disabled their queueing system > >(which prodiced hour-long idle txns), the progressive slowness went away. > > > >Why that should affect 9.X far more strongly than 8.4, I'm not sure > >about. Does that mean that 8.4 was unsafe, or that this is something > >which *could* be fixed in later versions? > > > >I'm also confused as to why this would affect BIND time rather than > >EXECUTE time. > > > > > One thing that this made me wonder is why we don't have transaction_timeout, > or maybe transaction_idle_timeout. Because it's harder than it sounds, at least if you want to support idle-in-transactions. Note that we do not support pg_cancel_backend() for those yet... Also, I think it might lead to papering over actual issues with applications leaving transactions open. I don't really see a valid reason for an application needing cancelling of long idle transactions. Greetings, Andres Freund -- Andres Freund http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance