From: Tom Lane Date: Sat, 13 Nov 2010 05:34:57 +0000 (-0500) Subject: Add missing outfuncs.c support for struct InhRelation. X-Git-Tag: REL8_4_6~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=876cb81a119230525b8f3c0c4c77fc0c44f54d1c;p=thirdparty%2Fpostgresql.git 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. --- diff --git a/src/backend/nodes/outfuncs.c b/src/backend/nodes/outfuncs.c index 443be9a739f..15f0c94f1b4 100644 --- a/src/backend/nodes/outfuncs.c +++ b/src/backend/nodes/outfuncs.c @@ -1808,6 +1808,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_NODE_FIELD(options); +} + static void _outLockingClause(StringInfo str, LockingClause *node) { @@ -2771,6 +2780,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;