提交 56487e36 编写于 作者: H Heikki Linnakangas

Silence WARNINGs about missing out function with DEBUG5

If log_min_messages = 'debug5', we call the text output function for
everything that's serialized to be sent from QD to QEs. I added a new
node type, QueryDispatchDesc, in commit 41478b89, but I only gave it
the "fast" output function, not the text version. That produced a
warning about missing output function, with log_min_messages='debug5'.

This fixes the failure of qp_executor test, reported by Omar Arap.
上级 fd6741f9
......@@ -355,17 +355,6 @@ _outPlannedStmt(StringInfo str, PlannedStmt *node)
WRITE_UINT64_FIELD(query_mem);
}
static void
_outQueryDispatchDesc(StringInfo str, QueryDispatchDesc *node)
{
WRITE_NODE_TYPE("QUERYDISPATCHDESC");
WRITE_NODE_FIELD(transientTypeRecords);
WRITE_NODE_FIELD(intoOidInfo);
WRITE_STRING_FIELD(intoTableSpaceName);
WRITE_NODE_FIELD(sliceTable);
}
static void
outLogicalIndexInfo(StringInfo str, LogicalIndexInfo *node)
{
......
......@@ -321,6 +321,17 @@ _outPlannedStmt(StringInfo str, PlannedStmt *node)
}
#endif /* COMPILING_BINARY_FUNCS */
static void
_outQueryDispatchDesc(StringInfo str, QueryDispatchDesc *node)
{
WRITE_NODE_TYPE("QUERYDISPATCHDESC");
WRITE_NODE_FIELD(transientTypeRecords);
WRITE_NODE_FIELD(intoOidInfo);
WRITE_STRING_FIELD(intoTableSpaceName);
WRITE_NODE_FIELD(sliceTable);
}
#ifndef COMPILING_BINARY_FUNCS
/*
* print the basic stuff of all nodes that inherit from Plan
......@@ -4241,6 +4252,9 @@ _outNode(StringInfo str, void *obj)
case T_PlannedStmt:
_outPlannedStmt(str, obj);
break;
case T_QueryDispatchDesc:
_outQueryDispatchDesc(str, obj);
break;
case T_Plan:
_outPlan(str, obj);
break;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册