aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeLockRows.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/executor/nodeLockRows.c')
-rw-r--r--src/backend/executor/nodeLockRows.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/backend/executor/nodeLockRows.c b/src/backend/executor/nodeLockRows.c
index 7961b4be6ab..b39ccf7dc13 100644
--- a/src/backend/executor/nodeLockRows.c
+++ b/src/backend/executor/nodeLockRows.c
@@ -370,13 +370,15 @@ ExecInitLockRows(LockRows *node, EState *estate, int eflags)
/*
* Miscellaneous initialization
*
- * LockRows nodes never call ExecQual or ExecProject.
+ * LockRows nodes never call ExecQual or ExecProject, therefore no
+ * ExprContext is needed.
*/
/*
- * Tuple table initialization (XXX not actually used...)
+ * Tuple table initialization (XXX not actually used, but upper nodes
+ * access it to get this node's result tupledesc...)
*/
- ExecInitResultTupleSlot(estate, &lrstate->ps);
+ ExecInitResultTupleSlotTL(estate, &lrstate->ps);
/*
* then initialize outer plan
@@ -387,7 +389,6 @@ ExecInitLockRows(LockRows *node, EState *estate, int eflags)
* LockRows nodes do no projections, so initialize projection info for
* this node appropriately
*/
- ExecAssignResultTypeFromTL(&lrstate->ps);
lrstate->ps.ps_ProjInfo = NULL;
/*