diff options
author | Amit Langote <amitlan@postgresql.org> | 2023-09-28 09:44:39 +0900 |
---|---|---|
committer | Amit Langote <amitlan@postgresql.org> | 2023-09-28 09:44:39 +0900 |
commit | d060e921ea5aa47b6265174c32e1128cebdbc3df (patch) | |
tree | c99915a37571d3e5e1792069677069d4bc1d9c86 /src/backend/executor/nodeIncrementalSort.c | |
parent | 9210afd3bcd65feccb883ace4ed6dcef6a684585 (diff) | |
download | postgresql-d060e921ea5aa47b6265174c32e1128cebdbc3df.tar.gz postgresql-d060e921ea5aa47b6265174c32e1128cebdbc3df.zip |
Remove obsolete executor cleanup code
This commit removes unnecessary ExecExprFreeContext() calls in
ExecEnd* routines because the actual cleanup is managed by
FreeExecutorState(). With no callers remaining for
ExecExprFreeContext(), this commit also removes the function.
This commit also drops redundant ExecClearTuple() calls, because
ExecResetTupleTable() in ExecEndPlan() already takes care of
resetting and dropping all TupleTableSlots initialized with
ExecInitScanTupleSlot() and ExecInitExtraTupleSlot().
After these modifications, the ExecEnd*() routines for ValuesScan,
NamedTuplestoreScan, and WorkTableScan became redundant. So, this
commit removes them.
Reviewed-by: Robert Haas
Discussion: https://postgr.es/m/CA+HiwqFGkMSge6TgC9KQzde0ohpAycLQuV7ooitEEpbKB0O_mg@mail.gmail.com
Diffstat (limited to 'src/backend/executor/nodeIncrementalSort.c')
-rw-r--r-- | src/backend/executor/nodeIncrementalSort.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/backend/executor/nodeIncrementalSort.c b/src/backend/executor/nodeIncrementalSort.c index 7683e3341cd..cd094a190cb 100644 --- a/src/backend/executor/nodeIncrementalSort.c +++ b/src/backend/executor/nodeIncrementalSort.c @@ -1079,11 +1079,6 @@ ExecEndIncrementalSort(IncrementalSortState *node) { SO_printf("ExecEndIncrementalSort: shutting down sort node\n"); - /* clean out the scan tuple */ - ExecClearTuple(node->ss.ss_ScanTupleSlot); - /* must drop pointer to sort result tuple */ - ExecClearTuple(node->ss.ps.ps_ResultTupleSlot); - /* must drop standalone tuple slots from outer node */ ExecDropSingleTupleTableSlot(node->group_pivot); ExecDropSingleTupleTableSlot(node->transfer_tuple); |