postgres.git / summary / log / commit / refs
commit 9f65a874ebf86291ca1f7920f74f6c9d6d20a213
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: Sat Nov 13 05:34:50 2010 +0000
First released in: 9.1.0, 8.1.23, 8.2.19, 8.3.13, 8.4.6, 9.0.2
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 ae0e2abd40a..030a675b7b6 100644
--- a/src/backend/nodes/outfuncs.c
+++ b/src/backend/nodes/outfuncs.c
@@ -1877,6 +1877,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)
{
@@ -2884,6 +2893,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;
[parent: 9e4b2139db4c]