* Returns a ParamPathInfo for the parameterization given by required_outer, if * already available in the given rel. Returns NULL otherwise. */
| 2060 | * already available in the given rel. Returns NULL otherwise. |
| 2061 | */ |
| 2062 | ParamPathInfo * |
| 2063 | find_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 |
no test coverage detected