Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id C11FF2E004B for ; Thu, 14 Feb 2008 08:22:22 -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 84068-07 for ; Thu, 14 Feb 2008 08:22:19 -0400 (AST) Received: from tremor.opencloud.co.nz (tremor.opencloud.co.nz [131.203.101.230]) by postgresql.org (Postfix) with ESMTP id 89F692E0159 for ; Thu, 14 Feb 2008 08:22:19 -0400 (AST) Received: from 219-89-39-133.dialup.xtra.co.nz ([219.89.39.133] helo=[192.168.1.3]) by tremor.opencloud.co.nz with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1JPd6N-0007s0-4R; Fri, 15 Feb 2008 01:22:07 +1300 Message-ID: <47B4326D.3080907@opencloud.com> Date: Fri, 15 Feb 2008 01:22:05 +1300 From: Oliver Jowett User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: Simon Riggs CC: josh@agliodbs.com, Stephen Denne , Kris Jurka , PostgreSQL - JDBC Subject: Re: JDBC, prepared queries, and partitioning 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> In-Reply-To: <1202990876.16770.635.camel@ebony.site> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200802/90 X-Sequence-Number: 18297 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. If you want to put together a patch, though, I'm happy to take a look at it. -O