Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 3541E9FB32C for ; Tue, 26 Sep 2006 07:21:13 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 08989-08 for ; Tue, 26 Sep 2006 07:21:06 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [131.203.101.226]) by postgresql.org (Postfix) with ESMTP id 885F39FB2FB for ; Tue, 26 Sep 2006 07:21:04 -0300 (ADT) Received: from 222-152-186-122.jetstream.xtra.co.nz ([222.152.186.122] helo=[10.1.1.3]) by yass.opencloud.co.nz with asmtp (TLS-1.0:DHE_RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1GSA3e-0004Ce-EH; Tue, 26 Sep 2006 22:20:59 +1200 Message-ID: <4518FF16.3050804@opencloud.com> Date: Tue, 26 Sep 2006 10:21:10 +0000 From: Oliver Jowett User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Markus Schaber CC: pgsql-jdbc@postgresql.org Subject: Re: Bind message References: <451846B0.6070906@logix-tt.com> <45184D61.3010007@opencloud.com> <4518E986.3030801@logix-tt.com> In-Reply-To: <4518E986.3030801@logix-tt.com> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200609/115 X-Sequence-Number: 15833 Markus Schaber wrote: > Ah. But usually, the other parameter values for the same prepared > statement produce similar query plans, because they're the same use case > on similar data. For the "wrong" values though the plan might be pathologically bad. > Maybe this behaviour should be configurable via some session > configuration variable? Isn't this just a very roundabout way of overriding the planner? i.e. what you are really doing is saying "ignore your statistics, I know more about the parameter values I'm going to give you than I'm actually telling you".. -O