pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Simon Riggs <simon@2ndquadrant.com>
To: Kris Jurka <books@ejurka.com>
Cc: Josh Berkus <josh@agliodbs.com>
Cc: PostgreSQL - JDBC <pgsql-jdbc@postgresql.org>
Subject: Re: JDBC, prepared queries, and partitioning
Date: Wed, 13 Feb 2008 22:32:45 +0000
Message-ID: <1202941965.16770.540.camel@ebony.site> (raw)
In-Reply-To: <Pine.BSO.4.64.0802131706100.16718@leary.csoft.net>
References: <200802131005.30553.josh@agliodbs.com>
	<Pine.BSO.4.64.0802131348050.27322@leary.csoft.net>
	<1202934864.16770.486.camel@ebony.site>
	<Pine.BSO.4.64.0802131537500.26092@leary.csoft.net>
	<1202936181.16770.493.camel@ebony.site>
	<Pine.BSO.4.64.0802131602540.9961@leary.csoft.net>
	<1202938005.16770.514.camel@ebony.site>
	<Pine.BSO.4.64.0802131630420.22592@leary.csoft.net>
	<1202940283.16770.525.camel@ebony.site>
	<Pine.BSO.4.64.0802131706100.16718@leary.csoft.net>

On Wed, 2008-02-13 at 17:15 -0500, Kris Jurka wrote:
> 
> On Wed, 13 Feb 2008, Simon Riggs wrote:
> 
> > I'd read it before and again before I posted this evening. Which part of
> > that says prepareTheshold only applies to v2 protocol?
> 
> Perhaps not the clearest wording (too many version numbers), but the below 
> is supposed to say that:
> 
> "Enabling server-prepared statements will have no affect when connected to 
> a 7.3 server or when explicitly using the V2 protocol to connect to a 7.4 
> server."
> 
> > The code example doesn't explicitly state protocolVersion as you say is
> > required either.
> >
> 
> Well the default is V3, so it's not necessary to explicity state it.

But the code example shows explicit use of

pgconn.setPrepareThreshold(5);

which clearly does nothing, given the default setting of protocol V3.

So the program shown only works as stated with 7.3, the last time the
default connection protocol was v2.

> > You don't think its important?
> >
> 
> It's not important to me.  If I was going to doing some doc editing, I'd 
> probably hit this area, but for the moment I think it's close enough to 
> the truth and I've got other things to do.

Should we be asking for volunteers to overhaul the docs? I'm concerned
that some important facts aren't just wrong, they've been wrong for 4+
years. That's a pretty serious situation for customer performance as
well as advocacy.

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




view thread (41+ messages)  latest in thread

Message-ID: <1202941965.16770.540.camel@ebony.site>
Permalink:  ../1202941965.16770.540.camel@ebony.site/
Also on:    postgresql.org/message-id/1202941965.16770.540.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, books@ejurka.com, josh@agliodbs.com
  Subject: Re: JDBC, prepared queries, and partitioning
  In-Reply-To: <1202941965.16770.540.camel@ebony.site>
  References: <200802131005.30553.josh@agliodbs.com> <Pine.BSO.4.64.0802131348050.27322@leary.csoft.net> <1202934864.16770.486.camel@ebony.site> <Pine.BSO.4.64.0802131537500.26092@leary.csoft.net> <1202936181.16770.493.camel@ebony.site> <Pine.BSO.4.64.0802131602540.9961@leary.csoft.net> <1202938005.16770.514.camel@ebony.site> <Pine.BSO.4.64.0802131630420.22592@leary.csoft.net> <1202940283.16770.525.camel@ebony.site> <Pine.BSO.4.64.0802131706100.16718@leary.csoft.net> <1202941965.16770.540.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