Re: Retrieving all possible join trees from PLANNER..

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Gayathri TK <gtambar(at)ncsu(dot)edu>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Retrieving all possible join trees from PLANNER..
Date: 2005-11-02 15:49:13
Message-ID: 6019.1130946553@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Gayathri TK <gtambar(at)ncsu(dot)edu> writes:
> How do i efficiently retrieve this information?

You don't, because the planner doesn't actually calculate all possible
join trees --- it wouldn't run in a reasonable amount of time if it
tried. It only considers trees that are built from subtrees that appear
optimal for their subset of the relations.

If that's enough for your purpose, you could hack the planner to save
aside the info somewhere. Note that the representation is not a
finished Plan tree, only a Path tree.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Idar Tollefsen 2005-11-02 15:55:51 Re: 8.1RC1 fails to build on OS X (10.4)
Previous Message Alvaro Herrera 2005-11-02 15:43:03 Re: Limit usage of tcop/dest.h