From 032191b4aa44a65a7116413c765b64d25c6e700e Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sat, 13 Nov 2010 00:35:03 -0500 Subject: [PATCH] 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. --- src/backend/nodes/outfuncs.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/backend/nodes/outfuncs.c b/src/backend/nodes/outfuncs.c index ac0aa573bf8..dbaff027e4b 100644 --- a/src/backend/nodes/outfuncs.c +++ b/src/backend/nodes/outfuncs.c @@ -1629,6 +1629,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) { @@ -2435,6 +2444,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;