Skip to content

Commit 032191b

Browse files
committed
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.
1 parent 7b3c4a5 commit 032191b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/backend/nodes/outfuncs.c

+12
Original file line numberDiff line numberDiff line change
@@ -1629,6 +1629,15 @@ _outDefElem(StringInfo str, DefElem *node)
16291629
WRITE_NODE_FIELD(arg);
16301630
}
16311631

1632+
static void
1633+
_outInhRelation(StringInfo str, InhRelation *node)
1634+
{
1635+
WRITE_NODE_TYPE("INHRELATION");
1636+
1637+
WRITE_NODE_FIELD(relation);
1638+
WRITE_NODE_FIELD(options);
1639+
}
1640+
16321641
static void
16331642
_outLockingClause(StringInfo str, LockingClause *node)
16341643
{
@@ -2435,6 +2444,9 @@ _outNode(StringInfo str, void *obj)
24352444
case T_DefElem:
24362445
_outDefElem(str, obj);
24372446
break;
2447+
case T_InhRelation:
2448+
_outInhRelation(str, obj);
2449+
break;
24382450
case T_LockingClause:
24392451
_outLockingClause(str, obj);
24402452
break;

0 commit comments

Comments
 (0)