pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Paul Lindner <lindner@inuus.com>
To: Oliver Jowett <oliver@opencloud.com>
Cc: Paul Lindner <lindner@inuus.com>
Cc: Till Toenges <tt@kyon.de>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Prepared Statements vs. pgbouncer
Date: Mon, 1 Oct 2007 14:32:37 -0700
Message-ID: <20071001213237.GR3140@inuus.com> (raw)
In-Reply-To: <4701616A.5080300@opencloud.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>

On Tue, Oct 02, 2007 at 10:06:50AM +1300, Oliver Jowett wrote:
> Paul Lindner wrote:
> 
> >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.
> 
> What? Why on earth would you need to recreate the SQL grammar inside 
> 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.

-- 
Paul Lindner        ||||| | | | |  |  |  |   |   |
lindner@inuus.com

view thread (48+ messages)  latest in thread

Message-ID: <20071001213237.GR3140@inuus.com>
Permalink:  ../20071001213237.GR3140@inuus.com/
Also on:    postgresql.org/message-id/20071001213237.GR3140@inuus.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: lindner@inuus.com, oliver@opencloud.com, tt@kyon.de
  Subject: Re: Prepared Statements vs. pgbouncer
  In-Reply-To: <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> <20071001213237.GR3140@inuus.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox