* Like ExecFindMatchingSubPlans, but adds the matching partitions * to an existing Bitmapset. */
| 2218 | * to an existing Bitmapset. |
| 2219 | */ |
| 2220 | Bitmapset * |
| 2221 | ExecAddMatchingSubPlans(PartitionPruneState *prunestate, Bitmapset *result) |
| 2222 | { |
| 2223 | Bitmapset *thisresult; |
| 2224 | |
| 2225 | thisresult = ExecFindMatchingSubPlans(prunestate, NULL, -1, NIL); |
| 2226 | |
| 2227 | result = bms_add_members(result, thisresult); |
| 2228 | |
| 2229 | bms_free(thisresult); |
| 2230 | |
| 2231 | return result; |
| 2232 | } |
| 2233 | |
| 2234 | /* |
| 2235 | * ExecFindMatchingSubPlans |
no test coverage detected