Received: from localhost (unknown [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 3D7179FA05F for ; Mon, 1 Oct 2007 18:33:02 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 70469-02 for ; Mon, 1 Oct 2007 18:32:40 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from mirth.inuus.com (mirth.inuus.com [67.100.95.85]) by postgresql.org (Postfix) with ESMTP id B6C599FA02E for ; Mon, 1 Oct 2007 18:32:55 -0300 (ADT) Received: from mirth.inuus.com (localhost.localdomain [127.0.0.1]) by mirth.inuus.com (8.14.1/8.14.1) with ESMTP id l91LWbeX014613 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 1 Oct 2007 14:32:37 -0700 Received: (from lindner@localhost) by mirth.inuus.com (8.14.1/8.14.1/Submit) id l91LWbbf014612; Mon, 1 Oct 2007 14:32:37 -0700 X-Authentication-Warning: mirth.inuus.com: lindner set sender to lindner@inuus.com using -f Date: Mon, 1 Oct 2007 14:32:37 -0700 From: Paul Lindner To: Oliver Jowett Cc: Paul Lindner , Till Toenges , pgsql-jdbc@postgresql.org Subject: Re: Prepared Statements vs. pgbouncer Message-ID: <20071001213237.GR3140@inuus.com> References: <20070929002513.GG3140@inuus.com> <87sl4xvmn2.fsf@oxford.xeocode.com> <20070929144635.GK3140@inuus.com> <46FED6A2.8000209@opencloud.com> <20070930070725.GL3140@inuus.com> <470125E2.9060505@kyon.de> <20071001204917.GP3140@inuus.com> <4701616A.5080300@opencloud.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="qXPE+6hUsFlDAc0e" Content-Disposition: inline In-Reply-To: <4701616A.5080300@opencloud.com> User-Agent: Mutt/1.5.14 (2007-02-12) X-Virus-Scanned: ClamAV 0.91.2/4445/Mon Oct 1 01:32:46 2007 on mirth.inuus.com X-Virus-Status: Clean X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200710/29 X-Sequence-Number: 17601 --qXPE+6hUsFlDAc0e Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Oct 02, 2007 at 10:06:50AM +1300, Oliver Jowett wrote: > Paul Lindner wrote: >=20 > >The problem is that the described solution puts way too much moving > >parts inside of something that should be very simple. You'd have to > >recreate most of Postgresql's parsing and grammar inside of Pgbouncer > >and change it from something simple into a full-featured proxy. >=20 > What? Why on earth would you need to recreate the SQL grammar inside=20 > pgbouncer?! Justify this. Eh? I didn't mention Sql grammar. A proxy would at minimum have to track and maintain connection settings and portals and recreate them on each backend. However a full-featured proxy could parse any GUC statements. In fact if you want full support for temporary tables (iffy) / temporary views (perhaps possible) and whatnot you will have to parse the SQL flying across the wire so you can recreate the session in it's entirety. Of course, I don't want nor need that. For the record: Please please please note that I'm only trying to solve a particular problem here. I know what I want to do is messy, ugly and a little impure and flies in the face of elegant design. If it helps think of what I'm proposing as akin to denormalization of a beautiful schema to achieve specific goals. --=20 Paul Lindner ||||| | | | | | | | | | lindner@inuus.com --qXPE+6hUsFlDAc0e Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQFHAWdz+FkoUnP1gFQRAuCwAKCtl+K/tOKZUO8KXF1I0ooW9t//3ACeJDGv jxxFrbTqFMSZYI1ChYW/amk= =dfId -----END PGP SIGNATURE----- --qXPE+6hUsFlDAc0e--