]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Add missing outfuncs.c support for struct InhRelation.
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 13 Nov 2010 05:35:08 +0000 (00:35 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 13 Nov 2010 05:35:08 +0000 (00:35 -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 b1080433e798d4db3e67f7bcfd946dfbeac1ec23..f061ff131d4d0d8a20006cf06baf4a36788112a1 100644 (file)
@@ -1428,6 +1428,15 @@ _outDefElem(StringInfo str, DefElem *node)
        WRITE_NODE_FIELD(arg);
 }
 
+static void
+_outInhRelation(StringInfo str, InhRelation *node)
+{
+       WRITE_NODE_TYPE("INHRELATION");
+
+       WRITE_NODE_FIELD(relation);
+       WRITE_NODE_FIELD(options);
+}
+
 static void
 _outLockingClause(StringInfo str, LockingClause *node)
 {
@@ -2194,6 +2203,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;