left-deep plans? - Mailing list pgsql-hackers

From Neil Conway
Subject left-deep plans?
Date
Msg-id 421AB043.3000507@samurai.com
Whole thread Raw
Responses Re: left-deep plans?
List pgsql-hackers
Presently the planner considers left-deep, right-deep, and bushy plans 
(i.e. it will consider plans in which the outer operand of a join is a 
join, the inner operand is a join, or both operands are joins). It is a 
fairly standard heuristic in the literature to restrict the search to 
left-deep plans, on the grounds that this significantly reduces the set 
of plans to consider, and the more efficient plans are _usually_ found 
in the set of left-deep plans (since we can do pipelining more 
efficiently). Has there been any thought about applying this optimization?

(I doubt it would be wise to unconditionally restrict the search to 
left-deep plans, but there may be situations in which applying this 
heuristic would allow the regular planner to be used instead of GEQO. 
Perhaps a GUC variable?)

-Neil


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [PATCHES] [pgsql-hackers-win32] Repleacement for src/port/snprintf.c
Next
From: Neil Conway
Date:
Subject: psql: recall previous command?