Add missing outfuncs.c support for struct InhRelation.
authorTom Lane
Sat, 13 Nov 2010 05:34:50 +0000 (00:34 -0500)
committerTom Lane
Sat, 13 Nov 2010 05:34:50 +0000 (00:34 -0500)
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.

src/backend/nodes/outfuncs.c

index ae0e2abd40afa8fa690765bfb88104a9e7044901..030a675b7b6cefb14c63e5d84c5dc66de0dbd0a5 100644 (file)
@@ -1877,6 +1877,15 @@ _outDefElem(StringInfo str, DefElem *node)
    WRITE_ENUM_FIELD(defaction, DefElemAction);
 }
 
+static void
+_outInhRelation(StringInfo str, InhRelation *node)
+{
+   WRITE_NODE_TYPE("INHRELATION");
+
+   WRITE_NODE_FIELD(relation);
+   WRITE_UINT_FIELD(options);
+}
+
 static void
 _outLockingClause(StringInfo str, LockingClause *node)
 {
@@ -2884,6 +2893,9 @@ _outNode(StringInfo str, void *obj)
            case T_DefElem:
                _outDefElem(str, obj);
                break;
+           case T_InhRelation:
+               _outInhRelation(str, obj);
+               break;
            case T_LockingClause:
                _outLockingClause(str, obj);
                break;