Skip to content

Commit 9f65a87

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 9e4b213 commit 9f65a87

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/backend/nodes/outfuncs.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1877,6 +1877,15 @@ _outDefElem(StringInfo str, DefElem *node)
18771877
WRITE_ENUM_FIELD(defaction, DefElemAction);
18781878
}
18791879

1880+
static void
1881+
_outInhRelation(StringInfo str, InhRelation *node)
1882+
{
1883+
WRITE_NODE_TYPE("INHRELATION");
1884+
1885+
WRITE_NODE_FIELD(relation);
1886+
WRITE_UINT_FIELD(options);
1887+
}
1888+
18801889
static void
18811890
_outLockingClause(StringInfo str, LockingClause *node)
18821891
{
@@ -2884,6 +2893,9 @@ _outNode(StringInfo str, void *obj)
28842893
case T_DefElem:
28852894
_outDefElem(str, obj);
28862895
break;
2896+
case T_InhRelation:
2897+
_outInhRelation(str, obj);
2898+
break;
28872899
case T_LockingClause:
28882900
_outLockingClause(str, obj);
28892901
break;

0 commit comments

Comments
 (0)