Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 519352E012A for ; Wed, 13 Feb 2008 18:35:30 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 07922-01 for ; Wed, 13 Feb 2008 18:35:21 -0400 (AST) Received: from outmail137066.authsmtp.net (unknown [62.13.137.66]) by postgresql.org (Postfix) with ESMTP id 014E92E0110 for ; Wed, 13 Feb 2008 18:35:25 -0400 (AST) Received: from outmail128178.authsmtp.net (outmail128178.authsmtp.net [62.13.128.178]) by punt4.authsmtp.com (8.14.1/8.14.1/Kp) with ESMTP id m1DMVA9h098922; Wed, 13 Feb 2008 22:31:10 GMT Received: from [192.168.0.3] (85-211-31-42.dyn.gotadsl.co.uk [85.211.31.42]) (authenticated bits=0) by mail.authsmtp.com (8.13.8/8.13.8/Kp) with ESMTP id m1DMVt2H022468; Wed, 13 Feb 2008 22:31:56 GMT Subject: Re: JDBC, prepared queries, and partitioning From: Simon Riggs To: Kris Jurka Cc: Josh Berkus , PostgreSQL - JDBC In-Reply-To: References: <200802131005.30553.josh@agliodbs.com> <1202934864.16770.486.camel@ebony.site> <1202936181.16770.493.camel@ebony.site> <1202938005.16770.514.camel@ebony.site> <1202940283.16770.525.camel@ebony.site> Content-Type: text/plain Date: Wed, 13 Feb 2008 22:32:45 +0000 Message-Id: <1202941965.16770.540.camel@ebony.site> Mime-Version: 1.0 X-Mailer: Evolution 2.8.2 Content-Transfer-Encoding: 7bit X-Server-Quench: 7b9260c9-da83-11dc-9670-001185d377ca X-AuthRoute: OCdxZQATClZOTQEd DAteCiNZVAwpPBRK HVkIKg5MJUcNSQVJ NksadRtFaQZba1xT HGQLW1xEUl97WmJ/ bgwfZQBDYEtPQQZr TkxLXVBXCwUmXB11 e3haUGFydQdCfnY+ Z0JmWj5cDk14c0Yu S1MARGUFeGZhPDMC WUZfdx5UcAJLdhoR aVd4ByJDAzANdhEa MyUYCngTER90bGxN WAwVJEgfTQ4SAzMm Rh0ZWX0mG0FNXywp Mx06K1kaHUAeWicA X-Authentic-SMTP: 61633235383639.squirrel.dmpriest.net.uk:787/Kp X-Report-SPAM: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-Virus-Status: No virus detected - but ensure you scan with your own anti-virus system! X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200802/70 X-Sequence-Number: 18277 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