pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Simon Riggs <simon@2ndquadrant.com>
To: Oliver Jowett <oliver@opencloud.com>
Cc: josh@agliodbs.com
Cc: Stephen Denne <Stephen.Denne@datamail.co.nz>
Cc: Kris Jurka <books@ejurka.com>
Cc: PostgreSQL - JDBC <pgsql-jdbc@postgresql.org>
Subject: Re: JDBC, prepared queries, and partitioning
Date: Thu, 14 Feb 2008 07:43:33 +0000
Message-ID: <1202975013.16770.594.camel@ebony.site> (raw)
In-Reply-To: <47B3EB3B.5050605@opencloud.com>
References: <200802131005.30553.josh@agliodbs.com>
	<F0238EBA67824444BC1CB4700960CB4804A4F683@dmpeints002.isotach.com>
	<1202939756.16770.517.camel@ebony.site>
	<200802131423.24613.josh@agliodbs.com>
	<47B37549.3@opencloud.com>
	<1202944752.16770.568.camel@ebony.site>
	<47B37BDA.8020702@opencloud.com>
	<1202973203.16770.581.camel@ebony.site>
	<47B3EB3B.5050605@opencloud.com>

On Thu, 2008-02-14 at 20:18 +1300, Oliver Jowett wrote:
> Simon Riggs wrote:
> 
> > But V3 supports having no parameters at all right?
> 
> Yes, but you're missing the point. If you want to, for example, ask for 
> metadata about the 4th parameter to the query, there has to *be* a 4th 
> parameter. If you fold everything inline, you lose the various 
> advantages that having the parameters out of line give you, such as the 
> ability to query the server about their characteristics or stream their 
> actual values in a binary form separate to the query, etc.

Right now, people are choosing to use V2 because of the
parameter-folding characteristics. Those people are giving up the things
you mention, plus much much more. I'm suggesting that we make the
parameter folding an option, to allow people to choose. If they need
access to parameter metadata (or other possibilities) then they won't
take advantage of the parameter-folding option.

I suggest we put the parameter folding option in now, then in 8.4 keep
the option but make it work via a GUC as Tom suggests.

-- 
  Simon Riggs
  2ndQuadrant  http://www.2ndQuadrant.com 




view thread (41+ messages)  latest in thread

Message-ID: <1202975013.16770.594.camel@ebony.site>
Permalink:  ../1202975013.16770.594.camel@ebony.site/
Also on:    postgresql.org/message-id/1202975013.16770.594.camel@ebony.site

 · 

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: simon@2ndquadrant.com, oliver@opencloud.com, josh@agliodbs.com, Stephen.Denne@datamail.co.nz, books@ejurka.com
  Subject: Re: JDBC, prepared queries, and partitioning
  In-Reply-To: <1202975013.16770.594.camel@ebony.site>
  References: <200802131005.30553.josh@agliodbs.com> <F0238EBA67824444BC1CB4700960CB4804A4F683@dmpeints002.isotach.com> <1202939756.16770.517.camel@ebony.site> <200802131423.24613.josh@agliodbs.com> <47B37549.3@opencloud.com> <1202944752.16770.568.camel@ebony.site> <47B37BDA.8020702@opencloud.com> <1202973203.16770.581.camel@ebony.site> <47B3EB3B.5050605@opencloud.com> <1202975013.16770.594.camel@ebony.site>

* 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