Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 21D4C9FA6BB for ; Tue, 26 Sep 2006 13:36:05 -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 27193-10 for ; Tue, 26 Sep 2006 13:36:00 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mir3-fs.mir3.com (mail.mir3.com [65.208.188.100]) by postgresql.org (Postfix) with ESMTP id 51F1E9FA4D7 for ; Tue, 26 Sep 2006 13:35:59 -0300 (ADT) Received: mir3-fs.mir3.com 172.16.1.11 from 172.16.2.68 172.16.2.68 via HTTP with MS-WebStorage 6.0.6249 Received: from archimedes.mirlogic.com by mir3-fs.mir3.com; 26 Sep 2006 09:35:50 -0700 Subject: Re: Bind message From: Mark Lewis To: Guy Rouillier Cc: pgsql-jdbc@postgresql.org In-Reply-To: References: Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: MIR3, Inc. Date: Tue, 26 Sep 2006 09:35:50 -0700 Message-Id: <1159288550.9657.1843.camel@archimedes> Mime-Version: 1.0 X-Mailer: Evolution 2.0.2 (2.0.2-27) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.169 tagged_above=0 required=5 tests=AWL, UNPARSEABLE_RELAY X-Spam-Level: X-Archive-Number: 200609/125 X-Sequence-Number: 15843 On Tue, 2006-09-26 at 11:06 -0500, Guy Rouillier wrote: > Oliver Jowett wrote: > > 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".. > > Is there a non-roundabout way of overriding the planner? Oracle has > hints. Sometimes the query analyzer benefits from a helping hand. The PG core doesn't support hints. I believe the general feeling among the PG developers is that their time is better spent making the planner smarter than in supporting a hints system which would introduce its own maintenance headaches. -- Mark