Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id D3ECCB5DC01 for ; Tue, 20 Sep 2011 02:01:09 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 77338-04 for ; Tue, 20 Sep 2011 05:01:02 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from mail-qw0-f44.google.com (mail-qw0-f44.google.com [209.85.216.44]) by mail.postgresql.org (Postfix) with ESMTP id C3CEDB5DC00 for ; Tue, 20 Sep 2011 02:01:00 -0300 (ADT) Received: by qwb8 with SMTP id 8so416188qwb.3 for ; Mon, 19 Sep 2011 22:00:59 -0700 (PDT) Received: by 10.224.198.133 with SMTP id eo5mr237537qab.375.1316494859428; Mon, 19 Sep 2011 22:00:59 -0700 (PDT) Received: from ayaki.localdomain (124-148-242-247.dyn.iinet.net.au. [124.148.242.247]) by mx.google.com with ESMTPS id bi8sm403381qab.15.2011.09.19.22.00.56 (version=SSLv3 cipher=OTHER); Mon, 19 Sep 2011 22:00:58 -0700 (PDT) Message-ID: <4E781E05.5090203@ringerc.id.au> Date: Tue, 20 Sep 2011 13:00:53 +0800 From: Craig Ringer User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0.2) Gecko/20110906 Thunderbird/6.0.2 MIME-Version: 1.0 To: Tom Lane CC: Maciek Sakrejda , =?UTF-8?B?UmFkb3PFgmF3IFNtb2c=?= =?UTF-8?B?dXJh?= , pgsql-jdbc@postgresql.org Subject: Re: binary patch problems References: <4E4ADB2A.5040902@gmail.com> <4E774962.4060904@nitorcreations.com> <16752.1316443632@sss.pgh.pa.us> <201109191926.43305.rsmogura@softperience.eu> <25673.1316479171@sss.pgh.pa.us> In-Reply-To: <25673.1316479171@sss.pgh.pa.us> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201109/72 X-Sequence-Number: 22190 On 09/20/2011 08:39 AM, Tom Lane wrote: > Maciek Sakrejda writes: >> I think what Tom is saying is that you'll be able to set >> prepareThreshold to 1 in the driver (always use named server-side >> prepared statements) and the server will automagically do the right >> thing. Right now, the big problem is that only unnamed prepared >> statements include the "feature" of being able to consider parameters >> in the query plan (since unnamed statements are not reused, there's no >> sense in planning them before you have parameters). > Right. We've rejiggered the backend so that planning is delayed until > parameter values are available in all cases. Oooh, exciting. That'll cut down on a whole class of mailing list query and get rid of a classic gotcha. Time for me to build git and start playing. -- Craig Ringer