---------------------------------------------------------------- * ExecEndGather * * frees any storage allocated through C routines. * ---------------------------------------------------------------- */
| 246 | * ---------------------------------------------------------------- |
| 247 | */ |
| 248 | void |
| 249 | ExecEndGather(GatherState *node) |
| 250 | { |
| 251 | ExecEndNode(outerPlanState(node)); /* let children clean up first */ |
| 252 | ExecShutdownGather(node); |
| 253 | ExecFreeExprContext(&node->ps); |
| 254 | if (node->ps.ps_ResultTupleSlot) |
| 255 | ExecClearTuple(node->ps.ps_ResultTupleSlot); |
| 256 | } |
| 257 | |
| 258 | /* |
| 259 | * Read the next tuple. We might fetch a tuple from one of the tuple queues |
no test coverage detected