Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id EAACB64FF9E for ; Thu, 14 Aug 2008 07:12:19 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 23315-05 for ; Thu, 14 Aug 2008 07:12:05 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from oxford.xeocode.com (unknown [82.16.16.210]) by postgresql.org (Postfix) with ESMTP id C48BF64FE0F for ; Thu, 14 Aug 2008 07:12:08 -0300 (ADT) Received: from localhost ([127.0.0.1] helo=oxford.xeocode.com) by oxford.xeocode.com with esmtp (Exim 4.69) (envelope-from ) id 1KTZoH-0001Dj-7H; Thu, 14 Aug 2008 11:12:01 +0100 To: "Craig Ringer" Cc: "Decibel!" , "Chris Kratz" , Subject: Re: Incorrect estimates on correlated filters In-Reply-To: <48A38ED3.8080500@postnewspapers.com.au> (Craig Ringer's message of "Thu\, 14 Aug 2008 09\:48\:03 +0800") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) X-Draft-From: ("nnimap+mail01.enterprisedb.com:INBOX.performance" 6528) References: <3642025c0808121459x75c8d9baq66194b87f5053ea3@mail.gmail.com> <12707C41-48C3-4072-A152-46FAB1FEE1E2@decibel.org> <48A38ED3.8080500@postnewspapers.com.au> From: Gregory Stark Organization: EnterpriseDB Date: Thu, 14 Aug 2008 11:12:00 +0100 Message-ID: <878wuzvrbj.fsf@oxford.xeocode.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.1 tagged_above=0 required=5 tests=RDNS_NONE=0.1 X-Spam-Level: X-Archive-Number: 200808/166 X-Sequence-Number: 31047 "Craig Ringer" writes: > It strikes me that there are really two types of query hint possible here. > > One tells the planner (eg) "prefer a merge join here". > > The other gives the planner more information that it might not otherwise > have to work with, so it can improve its decisions. "The values used in > this join condition are highly correlated". This sounds familiar: http://article.gmane.org/gmane.comp.db.postgresql.devel.general/55730/match= =3Dhints Plus =E7a change... --=20 Gregory Stark EnterpriseDB http://www.enterprisedb.com Ask me about EnterpriseDB's On-Demand Production Tuning