Re: left-deep plans? - Mailing list pgsql-hackers

From Neil Conway
Subject Re: left-deep plans?
Date
Msg-id 421AD3E8.7050403@samurai.com
Whole thread Raw
In response to Re: left-deep plans?  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: left-deep plans?  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: left-deep plans?  (Kenneth Marshall <ktm@it.is.rice.edu>)
List pgsql-hackers
Tom Lane wrote:
> Yes, and it's been rejected.  The notion is obviously bogus; it amounts
> to assuming that every database is a star schema with only one core table.

Interesting; yes, I suppose that's true.

> Once we get into GEQO territory, we are using the left-deep-only
> heuristic because that's the only kind of plan GEQO can construct.
> But at that point you've already given up any notion of exhaustive
> search.

I think most applications would prefer an exhaustive, deterministic 
search of a subset of the search space over a non-exhaustive, 
non-deterministic search of the same subset, given approximately the 
same performance. In other words, if confining the search to left-deep 
plans allows people to use the normal planner in situations where they 
would normally be forced to use GEQO to get acceptable performance, I 
think that would be a win.

Speaking of which, why does GEQO restrict its search to left-deep plans 
only?

-Neil


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: left-deep plans?
Next
From: Tom Lane
Date:
Subject: Re: left-deep plans?