Create a function variable "join_search_hook" to let plugins override the
Tom Lane <tgl@sss.pgh.pa.us>
Create a function variable "join_search_hook" to let plugins override the join search order portion of the planner; this is specifically intended to simplify developing a replacement for GEQO planning. Patch by Julius Stroffek, editorialized on by me. I renamed make_one_rel_by_joins to standard_join_search and make_rels_by_joins to join_search_one_level to better reflect their place within this scheme.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/optimizer/path/allpaths.c | modified | +29 −11 |
| src/backend/optimizer/path/joinrels.c | modified | +7 −7 |
| src/backend/optimizer/README | modified | +7 −6 |
| src/include/optimizer/paths.h | modified | +12 −2 |