Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 212B82E0138 for ; Wed, 13 Feb 2008 19:12:52 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 25534-03 for ; Wed, 13 Feb 2008 19:12:45 -0400 (AST) Received: from outmail136031.authsmtp.co.uk (outmail136031.authsmtp.co.uk [62.13.136.31]) by postgresql.org (Postfix) with ESMTP id C3FFF2E012F for ; Wed, 13 Feb 2008 19:12:45 -0400 (AST) Received: from outmail128184.authsmtp.net (outmail128184.authsmtp.net [62.13.128.184]) by punt3.authsmtp.com (8.13.8/8.13.8/Kp) with ESMTP id m1DNCcG8075257; Wed, 13 Feb 2008 23:12:38 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 m1DNCaMH044715; Wed, 13 Feb 2008 23:12:37 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> <1202941965.16770.540.camel@ebony.site> Content-Type: text/plain Date: Wed, 13 Feb 2008 23:13:26 +0000 Message-Id: <1202944406.16770.562.camel@ebony.site> Mime-Version: 1.0 X-Mailer: Evolution 2.8.2 Content-Transfer-Encoding: 7bit X-Server-Quench: 2a898e02-da89-11dc-9670-001185d377ca X-AuthRoute: OCdxZQATClZOTQEd DAteCiNZVAwpPBRK HVkIKg5MJUcNSQVJ NksadRtFaQZba1xT HGQLW1xEUl57WGF/ aA0fZQBDYEtPQQZr TkxLXVBXCwUmXB11 eG1PL2FycwFBeXs+ ZE5rWz5ZDUxzfRN9 QFMARGUPeGZhPDMC 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/73 X-Sequence-Number: 18280 On Wed, 2008-02-13 at 17:47 -0500, Kris Jurka wrote: > > On Wed, 13 Feb 2008, Simon Riggs wrote: > > > 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. > > No, you've got it all backwards. prepareThreshold only does something > with V3. OK. I was confused by your statement that "in V3 all prepared statements are prepared regardless of the threshold". I took that to mean that the prepareThreshold did nothing at all in V3, which threw everything I understood on its head. Many thanks for clarifications from yourself and Oliver. -- Simon Riggs 2ndQuadrant http://www.2ndQuadrant.com