提交 7d9a2584 编写于 作者: D Daniel Gustafsson

Include nodetag in squelching error

This mimicks the error messaging in ExecSquelchNode() for when the
node type is unknown, to aid debugging.

Also removes a header comment which was made obsolete in commit
6195b967.
Reviewed-by: NHeikki Linnakangas <hlinnakangas@pivotal.io>
上级 dd9ee7fb
......@@ -23,7 +23,6 @@
* ExecInitNode - initialize a plan node and its subplans
* ExecProcNode - get a tuple by executing the plan node
* ExecEndNode - shut down a plan node and its subplans
* ExecSquelchNode - notify subtree that no more tuples are needed
*
* NOTES
* This used to be three files. It is now all combined into
......@@ -948,7 +947,8 @@ ExecProcNode(PlanState *node)
ExecReScan(node); /* let ReScan handle this */
if (node->squelched)
elog(ERROR, "cannot execute squelched plan node");
elog(ERROR, "cannot execute squelched plan node of type: %d",
(int) nodeTag(node));
if (node->instrument)
InstrStartNode(node->instrument);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册