MCPcopy Create free account
hub / github.com/apache/cloudberry / find_param_path_info

Function find_param_path_info

src/backend/optimizer/util/relnode.c:2062–2076  ·  view source on GitHub ↗

* Returns a ParamPathInfo for the parameterization given by required_outer, if * already available in the given rel. Returns NULL otherwise. */

Source from the content-addressed store, hash-verified

2060 * already available in the given rel. Returns NULL otherwise.
2061 */
2062ParamPathInfo *
2063find_param_path_info(RelOptInfo *rel, Relids required_outer)
2064{
2065 ListCell *lc;
2066
2067 foreach(lc, rel->ppilist)
2068 {
2069 ParamPathInfo *ppi = (ParamPathInfo *) lfirst(lc);
2070
2071 if (bms_equal(ppi->ppi_req_outer, required_outer))
2072 return ppi;
2073 }
2074
2075 return NULL;
2076}
2077
2078/*
2079 * build_joinrel_partition_info

Callers 4

Calls 2

bms_equalFunction · 0.85
foreachFunction · 0.50

Tested by

no test coverage detected