Received: from localhost (unknown [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 3DE9F9FA052 for ; Mon, 1 Oct 2007 15:46:35 -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 38488-07 for ; Mon, 1 Oct 2007 15:46:27 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from outmail129167.authsmtp.com (outmail129167.authsmtp.com [62.13.129.167]) by postgresql.org (Postfix) with ESMTP id 9C0419F9509 for ; Mon, 1 Oct 2007 15:45:56 -0300 (ADT) Received: from outmail128179.authsmtp.co.uk (outmail128179.authsmtp.co.uk [62.13.128.179]) by punt3.authsmtp.com (8.13.8/8.13.8/Kp) with ESMTP id l91Ij503068292; Mon, 1 Oct 2007 19:45:05 +0100 (BST) Received: from josh-berkus-computer-2.local (adsl-63-195-55-98.dsl.snfc21.pacbell.net [63.195.55.98]) (authenticated bits=0) by mail.authsmtp.com (8.13.8/8.13.8/Kp) with ESMTP id l91Ij3Gk037931; Mon, 1 Oct 2007 19:45:03 +0100 (BST) Message-ID: <4701402A.2020804@agliodbs.com> Date: Mon, 01 Oct 2007 11:44:58 -0700 From: Josh Berkus User-Agent: Thunderbird 2.0.0.6 (Macintosh/20070728) MIME-Version: 1.0 To: Heikki Linnakangas CC: lindner@inuus.com, Oliver Jowett , pgsql-jdbc@postgresql.org Subject: Re: Prepared Statements vs. pgbouncer References: <20070929002513.GG3140@inuus.com> <46FDA4F2.8080507@opencloud.com> <20070929021522.GH3140@inuus.com> <24584.1191033096@sss.pgh.pa.us> <20070929072159.GI3140@inuus.com> <46FE3B1A.7020603@agliodbs.com> <46FED7FA.6060309@opencloud.com> <46FFC314.5080205@agliodbs.com> <47000C2E.8030409@opencloud.com> <4700B21C.1000008@enterprisedb.com> <47013A0E.6080607@agliodbs.com> <47013ECA.1060400@enterprisedb.com> In-Reply-To: <47013ECA.1060400@enterprisedb.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Server-Quench: 6cc6a6ba-704e-11dc-b86a-001185d377ca X-AuthRoute: OCdyZgscClZXSx8a IioLCC5HRQ8+YBZL BAkGMA9GIUINWEQN c1ACdx10O0FbHwkB BHYKUl5QVVdxXS1z aBRQZABDZ09QVg11 Uk1LR01SWllhAGVb BWlFUhp1fgZHNn94 Y0AsWCMIWhV8Jxdg RU5QQHAHZDMzdTIX VhFFdwNVcQtPKhxC bQMuGhFYa3VsHA4S NDp7Byo8JTxFJSgd eR0EMV8XTEAXBXYi XFZKBTolGlADTCgp RyAn X-Authentic-SMTP: 61633136333939.squirrel.dmpriest.net.uk:752/Kp X-Report-SPAM: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-Virus-Status: No virus detected - but ensure you scan with your own anti-virus system! X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200710/17 X-Sequence-Number: 17589 Heikki, > It's clearly pgBouncer here that's braking the protocol, so it's > pgBouncer that needs fixing. A workaround in JDBC driver would only help > JDBC apps. If you're having non-java applications in the mix, you'd have > to implement the workaround in *all* the drivers. > > BTW: I just stumbled across this Greg Sabine Mullane's blog post, which > describes a workaround for DBD::Pg perl module, so we're not alone: > http://people.planetpostgresql.org/greg/index.php?/archives/110-Using-DBDPg-with-pg_bouncer.html > Well, I think we have the right group of people here to think about what needs to be fixed. One of the Sun engineers can help with it, which I think is necessary since I doubt Marco has the time. So, given pgBouncer's purpose, what exactly should it be doing to handle prepared connections? That is, how can it support the v3 protocol without eliminating its tremendous scalability? --Josh