Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 2E3142E00E8 for ; Wed, 13 Feb 2008 17:26:08 -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 96781-01 for ; Wed, 13 Feb 2008 17:25:59 -0400 (AST) Received: from outmail136063.authsmtp.net (outmail136063.authsmtp.net [62.13.136.63]) by postgresql.org (Postfix) with ESMTP id 1AB6F2E00CF for ; Wed, 13 Feb 2008 17:26:02 -0400 (AST) Received: from outmail128175.authsmtp.net (outmail128175.authsmtp.net [62.13.128.175]) by punt2.authsmtp.com (8.13.8/8.13.8/Kp) with ESMTP id m1DLPu8t084680; Wed, 13 Feb 2008 21:25:56 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 m1DLPtJW079337; Wed, 13 Feb 2008 21:25:55 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> Content-Type: text/plain Date: Wed, 13 Feb 2008 21:26:45 +0000 Message-Id: <1202938005.16770.514.camel@ebony.site> Mime-Version: 1.0 X-Mailer: Evolution 2.8.2 Content-Transfer-Encoding: 7bit X-Server-Quench: 432095a9-da7a-11dc-9670-001185d377ca X-AuthRoute: OCdxZQATClZOTQEd DAteCiNZVAwpPBRK HVkIKg5MJUcNSQVJ NksadRtFaQZba1xT HGQLW1xEUlx7W2Z/ bgwfZQBDYEtPQQZr TkxLXVBXCwUmXB11 en5aKH5ycAxFe3k+ ZEFqVj5fX0Z6fEMs S1MARGpXeGZhPDMC 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/59 X-Sequence-Number: 18266 On Wed, 2008-02-13 at 16:06 -0500, Kris Jurka wrote: > > On Wed, 13 Feb 2008, Simon Riggs wrote: > > > On Wed, 2008-02-13 at 15:43 -0500, Kris Jurka wrote: > > > >> No, in V3 all prepared statements are prepared regardless of the > >> threshold. > > > > Am I reading the wrong documentation? > > http://jdbc.postgresql.org/documentation/83/connect.html#connection-parameters > > > > The documentation is just simplifying the complexities of named vs unnamed > statements. Aside from a couple of exceptions, an unnamed prepared > statement should perform equivalently to direct execution of the literal > query. Describing it as semi-prepared is complicated and not particularly > useful if there is no way to get non-prepared behavior. OK, but AFAICS the docs relating to prepareThreshold are wrong. They describe behaviour that doesn't happen all of the time, yet there is nothing to indicate that. Happy to provide a patch, if you'd like. -- Simon Riggs 2ndQuadrant http://www.2ndQuadrant.com