Re: How to force Nested Loop plan? - Mailing list pgsql-performance

From Ron Johnson
Subject Re: How to force Nested Loop plan?
Date
Msg-id 1062429767.7340.92.camel@haggis
Whole thread Raw
In response to Re: How to force Nested Loop plan?  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: How to force Nested Loop plan?
List pgsql-performance
On Sun, 2003-08-31 at 18:12, Tom Lane wrote:
> Rob Nagler <nagler@bivio.biz> 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


pgsql-performance by date:

Previous
From: Alberto Caso
Date:
Subject: Re: SQL performance problems
Next
From: Tom Lane
Date:
Subject: Re: How to force Nested Loop plan?