Skip to content

Commit 40da2c7

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 faea083 commit 40da2c7

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
@@ -1375,6 +1375,15 @@ _outDefElem(StringInfo str, DefElem *node)
13751375
WRITE_NODE_FIELD(arg);
13761376
}
13771377

1378+
static void
1379+
_outInhRelation(StringInfo str, InhRelation *node)
1380+
{
1381+
WRITE_NODE_TYPE("INHRELATION");
1382+
1383+
WRITE_NODE_FIELD(relation);
1384+
WRITE_BOOL_FIELD(including_defaults);
1385+
}
1386+
13781387
static void
13791388
_outLockingClause(StringInfo str, LockingClause *node)
13801389
{
@@ -2099,6 +2108,9 @@ _outNode(StringInfo str, void *obj)
20992108
case T_DefElem:
21002109
_outDefElem(str, obj);
21012110
break;
2111+
case T_InhRelation:
2112+
_outInhRelation(str, obj);
2113+
break;
21022114
case T_LockingClause:
21032115
_outLockingClause(str, obj);
21042116
break;

0 commit comments

Comments
 (0)