Re: Retrieving all possible join trees from PLANNER.. - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Retrieving all possible join trees from PLANNER..
Date
Msg-id 6019.1130946553@sss.pgh.pa.us
Whole thread Raw
In response to Retrieving all possible join trees from PLANNER..  (Gayathri TK <gtambar@ncsu.edu>)
List pgsql-hackers
Gayathri TK <gtambar@ncsu.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


pgsql-hackers by date:

Previous
From: "Kevin Grittner"
Date:
Subject: Re: pg_restore [archiver] file offset in dump file
Next
From: Idar Tollefsen
Date:
Subject: Re: 8.1RC1 fails to build on OS X (10.4)