Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id B52152E019B for ; Thu, 14 Feb 2008 03:43:08 -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 08354-08 for ; Thu, 14 Feb 2008 03:43:05 -0400 (AST) Received: from outmail128149.authsmtp.co.uk (outmail128149.authsmtp.co.uk [62.13.128.149]) by postgresql.org (Postfix) with ESMTP id 2EA662E0139 for ; Thu, 14 Feb 2008 03:43:05 -0400 (AST) Received: from outmail128182.authsmtp.co.uk (outmail128182.authsmtp.co.uk [62.13.128.182]) by punt3.authsmtp.com (8.13.8/8.13.8/Kp) with ESMTP id m1E7gigI096160; Thu, 14 Feb 2008 07:42:44 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 m1E7ghQJ073099; Thu, 14 Feb 2008 07:42:43 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: <47B3EB3B.5050605@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> Content-Type: text/plain Date: Thu, 14 Feb 2008 07:43:33 +0000 Message-Id: <1202975013.16770.594.camel@ebony.site> Mime-Version: 1.0 X-Mailer: Evolution 2.8.2 Content-Transfer-Encoding: 7bit X-Server-Quench: 6d80a147-dad0-11dc-9670-001185d377ca X-AuthRoute: OCdxZQATClZOTQEd DAteCiNZVAwpPBRK HVkIKg5MJUcNSQVJ NksacxtFaQFba1xT HGQLW1xEUFp7XWF/ bwkfZQBDYEtPQQZr TkxLXVBXCwUmXB10 AUlGM2NycAZGcXc+ Z0ZmVz5dCEx6JEd5 RVMARDkGeGZhPDMC 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/86 X-Sequence-Number: 18293 On Thu, 2008-02-14 at 20:18 +1300, Oliver Jowett wrote: > Simon Riggs wrote: > > > But V3 supports having no parameters at all right? > > Yes, but you're missing the point. If you want to, for example, ask for > metadata about the 4th parameter to the query, there has to *be* a 4th > parameter. If you fold everything inline, you lose the various > advantages that having the parameters out of line give you, such as the > ability to query the server about their characteristics or stream their > actual values in a binary form separate to the query, etc. Right now, people are choosing to use V2 because of the parameter-folding characteristics. Those people are giving up the things you mention, plus much much more. I'm suggesting that we make the parameter folding an option, to allow people to choose. If they need access to parameter metadata (or other possibilities) then they won't take advantage of the parameter-folding option. I suggest we put the parameter folding option in now, then in 8.4 keep the option but make it work via a GUC as Tom suggests. -- Simon Riggs 2ndQuadrant http://www.2ndQuadrant.com