Received: from localhost (unknown [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id B0E339FA166 for ; Mon, 1 Oct 2007 13:53:46 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 30070-04 for ; Mon, 1 Oct 2007 13:53:39 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from jcour.kyon.de (www.ky-on.de [213.9.98.91]) by postgresql.org (Postfix) with ESMTP id DFBB19FA15B for ; Mon, 1 Oct 2007 13:53:39 -0300 (ADT) Received: from mainframe.local ([82.113.106.1]) (AUTH: LOGIN tt, SSL: TLSv1/SSLv3,256bits,AES256-SHA) by jcour.kyon.de with esmtp; Mon, 01 Oct 2007 18:53:33 +0200 id 0006D69B.4701260F.000007AB Message-ID: <470125E2.9060505@kyon.de> Date: Mon, 01 Oct 2007 18:52:50 +0200 From: Till Toenges User-Agent: Thunderbird 2.0.0.6 (Macintosh/20070728) MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Re: Prepared Statements vs. pgbouncer References: <20070929002513.GG3140@inuus.com> <87sl4xvmn2.fsf@oxford.xeocode.com> <20070929144635.GK3140@inuus.com> <46FED6A2.8000209@opencloud.com> <20070930070725.GL3140@inuus.com> In-Reply-To: <20070930070725.GL3140@inuus.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=BAYES_50=0.001 X-Spam-Level: X-Archive-Number: 200710/13 X-Sequence-Number: 17585 Paul Lindner wrote: > 1) Use hashing to choose a prepared statement name > > If we take the hash of the prepared statement text and prefix with > S_ we can be assured of using the same unique prepared statement > name across all application servers. > > (And yes, I know that hashes are not perfect and collisions can > occur. Highly unlikely if we choose a good hash) This sounds like a bad idea on many levels. Don't do it. Actually, i think the driver is ok and the real problem is pgbouncer. I have another solution to your problem: You said that there are 100s of Servers, i assume that there is some money behind that. Talk to the pgbouncer developers. Ask them to analyze your problem and what it would cost to fix it. Ask them what it would cost to make pgbouncer fully compliant, because it's probably not the only feature you will miss. Figure out if this is cheaper than replacing / upgrading your hardware with something powerful enough to handle the load without pgbouncer. Pick the cheaper solution. Done. "Fixing" the jdbc driver is probably not a stable long term solution, even if it helps with your most immediate problem. Till