Received: from localhost (unknown [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 976BC9F9A5F for ; Sat, 29 Sep 2007 06:36:50 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 13954-06 for ; Sat, 29 Sep 2007 06:36:46 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from oxford.xeocode.com (unknown [87.127.95.196]) by postgresql.org (Postfix) with ESMTP id 248099F9A58 for ; Sat, 29 Sep 2007 06:36:44 -0300 (ADT) Received: from localhost.enta.net ([127.0.0.1] helo=oxford.xeocode.com) by oxford.xeocode.com with esmtp (Exim 4.67) (envelope-from ) id 1IbYkU-0005JX-1r; Sat, 29 Sep 2007 10:36:34 +0100 To: "Paul Lindner" Cc: Subject: Re: Prepared Statements vs. pgbouncer In-Reply-To: <20070929002513.GG3140@inuus.com> (Paul Lindner's message of "Fri\, 28 Sep 2007 17\:25\:13 -0700") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) X-Draft-From: ("nnimap+mail01.enterprisedb.com:INBOX.jdbc" 603) References: <20070929002513.GG3140@inuus.com> From: Gregory Stark Organization: EnterpriseDB Date: Sat, 29 Sep 2007 10:36:33 +0100 Message-ID: <87sl4xvmn2.fsf@oxford.xeocode.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200709/140 X-Sequence-Number: 17562 "Paul Lindner" writes: > * pgbouncer notices that client A is idle and reassigns backend to > client B What do you mean by "notices"? Prepared statements are only one form of state which can persist beyond a transaction end. I don't think you can reassign connections unless you get some sort of explicit notice that the client is done with any state it has set up. Either the driver supports noticing such a state because there are no active references to its handle or the client issues a statement like RESET ALL or something equivalent. -- Gregory Stark EnterpriseDB http://www.enterprisedb.com