Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 6B4572E0175 for ; Wed, 13 Feb 2008 19:23: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 27993-02 for ; Wed, 13 Feb 2008 19:23:19 -0400 (AST) Received: from tremor.opencloud.co.nz (tremor.opencloud.co.nz [131.203.101.230]) by postgresql.org (Postfix) with ESMTP id 49B5D2E0151 for ; Wed, 13 Feb 2008 19:23: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 1JPQwW-0004sN-He; Thu, 14 Feb 2008 12:23:08 +1300 Message-ID: <47B37BDA.8020702@opencloud.com> Date: Thu, 14 Feb 2008 12:23:06 +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> In-Reply-To: <1202944752.16770.568.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/76 X-Sequence-Number: 18283 Simon Riggs wrote: > What we need is a "send parameters inline" mode that can be set as an > option for a PreparedStatement. Nobody wants to use V2, we just want the > ability to re-plan a query every time. Perhaps that is best implemented > as a server side option that can be exposed via JDBC option, since this > is an SQL requirement and nothing to do with Java. Unfortunately you can't have your cake and eat it too. Many of the features specific to V3 *require* that parameters be sent out of line (e.g. parameter metadata, bytea streaming, possibly OUT parameters) As Kris said earlier in this thread what we really need is a way to tell the server "I will only ever use this statement once, with these particular parameter values, go ahead and optimize the plan on that basis" -O