Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id B06952E00FE for ; Thu, 14 Feb 2008 09:03:50 -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 10127-04 for ; Thu, 14 Feb 2008 09:03:47 -0400 (AST) Received: from outmail137082.authsmtp.co.uk (outmail137082.authsmtp.co.uk [62.13.137.82]) by postgresql.org (Postfix) with ESMTP id 6BFC62E00E0 for ; Thu, 14 Feb 2008 09:03:47 -0400 (AST) Received: from outmail128184.authsmtp.net (outmail128184.authsmtp.net [62.13.128.184]) by punt4.authsmtp.com (8.14.1/8.14.1/Kp) with ESMTP id m1ED2gwt075174; Thu, 14 Feb 2008 13:02:42 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 m1ED3T1X008576; Thu, 14 Feb 2008 13:03:29 GMT Subject: Re: JDBC, prepared queries, and partitioning From: Simon Riggs To: Oliver Jowett Cc: josh@agliodbs.com, Stephen Denne , Kris Jurka , PostgreSQL - JDBC In-Reply-To: <47B4326D.3080907@opencloud.com> References: <200802131005.30553.josh@agliodbs.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> Content-Type: text/plain Date: Thu, 14 Feb 2008 13:04:19 +0000 Message-Id: <1202994259.16770.640.camel@ebony.site> Mime-Version: 1.0 X-Mailer: Evolution 2.8.2 Content-Transfer-Encoding: 7bit X-Server-Quench: 3cf8b180-dafd-11dc-9670-001185d377ca X-AuthRoute: OCdxZQATClZOTQEd DAteCiNZVAwpPBRK HVkIKg5MJUcNSQVJ NksacxtFaQFba1xT HGQLW1xEUV57WWB/ aQMfZQBDYEtPQQZr TkxLXVBXCwUmXB10 ch16U3Fydw1Df3g+ Z0dnWT5YDxJyJ0d1 QlMARDtSeGZhPDMC WUZfdx5UcAJLdhoR aVd4ByJDAzANdhEa MyUYCngTER90bGxN WAwVJEgfTQ4SAzMm Rh0ZWX0mG0FNXywp Mx06K1kaHUAeWjY5 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/92 X-Sequence-Number: 18299 On Fri, 2008-02-15 at 01:22 +1300, Oliver Jowett wrote: > 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. OK, I'll spend the time on providing server-side facilities in the next release. That way we won't need to do the driver side work at all. -- Simon Riggs 2ndQuadrant http://www.2ndQuadrant.com