Add missing outfuncs.c support for struct InhRelation.

This is needed to support debug_print_parse, per report from Jon Nelson.
Cursory testing via the regression tests suggests we aren't missing
anything else.
This commit is contained in:
Tom Lane 2010-11-13 00:34:57 -05:00
parent 5c85d1122b
commit 876cb81a11

View File

@ -1808,6 +1808,15 @@ _outDefElem(StringInfo str, DefElem *node)
WRITE_ENUM_FIELD(defaction, DefElemAction); WRITE_ENUM_FIELD(defaction, DefElemAction);
} }
static void
_outInhRelation(StringInfo str, InhRelation *node)
{
WRITE_NODE_TYPE("INHRELATION");
WRITE_NODE_FIELD(relation);
WRITE_NODE_FIELD(options);
}
static void static void
_outLockingClause(StringInfo str, LockingClause *node) _outLockingClause(StringInfo str, LockingClause *node)
{ {
@ -2771,6 +2780,9 @@ _outNode(StringInfo str, void *obj)
case T_DefElem: case T_DefElem:
_outDefElem(str, obj); _outDefElem(str, obj);
break; break;
case T_InhRelation:
_outInhRelation(str, obj);
break;
case T_LockingClause: case T_LockingClause:
_outLockingClause(str, obj); _outLockingClause(str, obj);
break; break;