* ReScanExprContext * * Reset an expression context in preparation for a rescan of its * plan node. This requires calling any registered shutdown callbacks, * since any partially complete set-returning-functions must be canceled. * * Note we make no assumption about the caller's memory context. */
| 492 | * Note we make no assumption about the caller's memory context. |
| 493 | */ |
| 494 | void |
| 495 | ReScanExprContext(ExprContext *econtext) |
| 496 | { |
| 497 | /* Call any registered callbacks */ |
| 498 | ShutdownExprContext(econtext, true); |
| 499 | /* And clean up the memory used */ |
| 500 | MemoryContextReset(econtext->ecxt_per_tuple_memory); |
| 501 | } |
| 502 | |
| 503 | /* |
| 504 | * Build a per-output-tuple ExprContext for an EState. |
no test coverage detected