diff --git a/src/backend/nodes/outfuncs.c b/src/backend/nodes/outfuncs.c
index 699cf8df83197b45ae1852ea2d5dba341112e7eb..61aea612fd4ee822b43e29069769b2106886d39f 100644
--- a/src/backend/nodes/outfuncs.c
+++ b/src/backend/nodes/outfuncs.c
@@ -1942,6 +1942,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)
 {
@@ -2963,6 +2972,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;