Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 606232E0131 for ; Wed, 13 Feb 2008 19:18:46 -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 27184-02 for ; Wed, 13 Feb 2008 19:18:43 -0400 (AST) Received: from outmail136073.authsmtp.co.uk (outmail136073.authsmtp.co.uk [62.13.136.73]) by postgresql.org (Postfix) with ESMTP id A65742E012B for ; Wed, 13 Feb 2008 19:18:43 -0400 (AST) Received: from outmail128184.authsmtp.net (outmail128184.authsmtp.net [62.13.128.184]) by punt2.authsmtp.com (8.13.8/8.13.8/Kp) with ESMTP id m1DNINsj044696; Wed, 13 Feb 2008 23:18:24 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 m1DNIMZL048256; Wed, 13 Feb 2008 23:18:23 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: <47B37549.3@opencloud.com> References: <200802131005.30553.josh@agliodbs.com> <1202939756.16770.517.camel@ebony.site> <200802131423.24613.josh@agliodbs.com> <47B37549.3@opencloud.com> Content-Type: text/plain Date: Wed, 13 Feb 2008 23:19:12 +0000 Message-Id: <1202944752.16770.568.camel@ebony.site> Mime-Version: 1.0 X-Mailer: Evolution 2.8.2 Content-Transfer-Encoding: 7bit X-Server-Quench: f8ddc151-da89-11dc-9670-001185d377ca X-AuthRoute: OCdxZQATClZOTQEd DAteCiNZVAwpPBRK HVkIKg5MJUcNSQVJ NksacxtFaQZba1xT HGQLW1xEUl57WGt/ aQkfZQBDYEtPQQZr TkxLXVBXCwUmXB11 eGdjOGVycw1EfXg+ ZENrXT4NVBAuJkd4 Q1MARGUPeGZhPDMC 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/75 X-Sequence-Number: 18282 On Thu, 2008-02-14 at 11:55 +1300, Oliver Jowett wrote: > Using the version 2 protocol means that parameter values are sent inline > with the query, which avoids the planning issue (but raises a number of > other problems since the v2 protocol is much less flexible than v3) > > > Can I use v2 against 8.3? > > I think so. You obviously lose any behaviour that depends on v3, e.g. > parameter metadata and smarter bytea streaming. 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. -- Simon Riggs 2ndQuadrant http://www.2ndQuadrant.com