Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id C0F309FB2B5 for ; Tue, 10 Oct 2006 14:27:12 -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 51252-02 for ; Tue, 10 Oct 2006 14:27:09 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from davinci.ethosmedia.com (server227.ethosmedia.com [209.128.84.227]) by postgresql.org (Postfix) with ESMTP id 1917C9FA170 for ; Tue, 10 Oct 2006 14:27:08 -0300 (ADT) X-EthosMedia-Virus-Scanned: no infections found Received: from [64.81.245.111] (account josh@agliodbs.com HELO [192.168.1.27]) by davinci.ethosmedia.com (CommuniGate Pro SMTP 4.1.8) with ESMTP id 10296547; Tue, 10 Oct 2006 10:30:38 -0700 From: Josh Berkus Reply-To: josh@agliodbs.com Organization: Aglio Database Solutions To: pgsql-performance@postgresql.org Subject: Re: Simple join optimized badly? Date: Tue, 10 Oct 2006 10:28:29 -0700 User-Agent: KMail/1.8 Cc: "Jim C. Nasby" , Tom Lane , Tobias Brox , Chris Browne References: <20061009213303.GA19144@oppetid.no> <17519.1160489688@sss.pgh.pa.us> <20061010142101.GD72517@nasby.net> In-Reply-To: <20061010142101.GD72517@nasby.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200610101028.30191.josh@agliodbs.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.045 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200610/201 X-Sequence-Number: 21330 Jim, > We've depricated things before, I'm sure we'll do it again. Yes, it's a > pain, but it's better than not having anything release after release. > And having a formal hint language would at least allow us to eventually > clean up some of these oddball cases, like the OFFSET 0 hack. > > I'm also not convinced that even supplimental statistics will be enough > to ensure the planner always does the right thing, so query-level hints > may have to stay (though it'd be great if that wasn't the case). "stay"? I don't think that the general developers of PostgreSQL are going to *accept* anything that stands a significant chance of breaking in one release. You have you challange for the EDB development team: come up with a hinting language which is flexible enough not to do more harm than good (hint: it's not Oracle's hints). -- --Josh Josh Berkus PostgreSQL @ Sun San Francisco