X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 919B3D1B8BD for ; Mon, 1 Sep 2003 15:23:03 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 49863-03 for ; Mon, 1 Sep 2003 12:22:52 -0300 (ADT) Received: from lakemtao03.cox.net (lakemtao03.cox.net [68.1.17.242]) by svr1.postgresql.org (Postfix) with ESMTP id 5854DD1B8B4 for ; Mon, 1 Sep 2003 12:22:52 -0300 (ADT) Received: from lhosts ([68.11.66.83]) by lakemtao03.cox.net (InterMail vM.5.01.06.04 201-253-122-130-104-20030726) with ESMTP id <20030901152249.WRRA10977.lakemtao03.cox.net@lhosts> for ; Mon, 1 Sep 2003 11:22:49 -0400 Subject: Re: How to force Nested Loop plan? From: Ron Johnson To: PgSQL Performance ML In-Reply-To: <29706.1062371570@sss.pgh.pa.us> References: <16208.41885.960000.12706@gargle.gargle.HOWL> <24637.1062255721@sss.pgh.pa.us> <16208.50934.351000.90704@gargle.gargle.HOWL> <2074.1062260382@sss.pgh.pa.us> <16209.3105.94000.204936@gargle.gargle.HOWL> <4040.1062281441@sss.pgh.pa.us> <16209.15488.141000.729032@gargle.gargle.HOWL> <29706.1062371570@sss.pgh.pa.us> Content-Type: text/plain Message-Id: <1062429767.7340.92.camel@haggis> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.4 Date: Mon, 01 Sep 2003 10:22:47 -0500 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/2 X-Sequence-Number: 3368 On Sun, 2003-08-31 at 18:12, Tom Lane wrote: > Rob Nagler writes: > > Are there plans for explicit hints to the planner? > > Personally, I'm philosophically opposed to planner hints; see previous > discussions in the archives. How about (if you don't already do it) ranked (or approximately ranked) b-tree indexes, where each node also stores the (approximate) count of tuple pointers under it? This way, the planner would know whether or how skewed a tree is, and (approximately) how many tuples a given WHERE predicate resolves to. -- ----------------------------------------------------------------- Ron Johnson, Jr. ron.l.johnson@cox.net Jefferson, LA USA "Fair is where you take your cows to be judged." Unknown