Ensure set-returning functions in the targetlist of a plan node will be
Tom Lane <tgl@sss.pgh.pa.us>
Ensure set-returning functions in the targetlist of a plan node will be shut down cleanly if the plan node is ReScanned before the SRFs are run to completion. This fixes the problem for SQL-language functions, but still need work on functions using the SRF_XXX() macros.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/executor/execAmi.c | modified | +19 −7 |
| src/backend/executor/execUtils.c | modified | +20 −1 |
| src/include/executor/executor.h | modified | +2 −1 |