pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Jowett <oliver@opencloud.com>
To: Simon Riggs <simon@2ndquadrant.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: Fri, 15 Feb 2008 01:22:05 +1300
Message-ID: <47B4326D.3080907@opencloud.com> (raw)
In-Reply-To: <1202990876.16770.635.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>
	<47B425F9.4050101@opencloud.com>
	<1202990876.16770.635.camel@ebony.site>

Simon Riggs wrote:

> Why not just fold in parameters if option is set and can continue to use
> normal V3 route, just with zero parameters? Any JDBC calls that want to
> inspect parameters can throw an exception when the option is set. So
> JDBC thinks there were parameters, yet Postgres server thinks there were
> no parameters.

Well, yes, that's essentially how our protocol-level abstraction works - 
the main driver deals in terms of abstracted Query and ParameterList 
objects, and the protocol layer maps those to something the server 
understands. This is how we support the v2 and v3 protocols in the same 
driver. I was suggesting a third protocol path ("v3simple" or something) 
that did pretty much what you described .. but I fear you are 
underestimating the work needed to implement it.

If you want to put together a patch, though, I'm happy to take a look at it.

-O




view thread (41+ messages)  latest in thread

Message-ID: <47B4326D.3080907@opencloud.com>
Permalink:  ../47B4326D.3080907@opencloud.com/
Also on:    postgresql.org/message-id/47B4326D.3080907@opencloud.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: oliver@opencloud.com, simon@2ndquadrant.com, josh@agliodbs.com, Stephen.Denne@datamail.co.nz, books@ejurka.com
  Subject: Re: JDBC, prepared queries, and partitioning
  In-Reply-To: <47B4326D.3080907@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> <1202975013.16770.594.camel@ebony.site> <47B425F9.4050101@opencloud.com> <1202990876.16770.635.camel@ebony.site> <47B4326D.3080907@opencloud.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