aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2010-11-13 00:34:45 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2010-11-13 00:36:14 -0500
commit2138c701a397885d4f360c90bf8b95d0d98aecd0 (patch)
tree614bb57d44bcf53effc8edb4bf26df25e365f7a0
parent52e2c12288cdcdcaa46a18937cc051d3322bbc99 (diff)
downloadpostgresql-2138c701a397885d4f360c90bf8b95d0d98aecd0.tar.gz
postgresql-2138c701a397885d4f360c90bf8b95d0d98aecd0.zip
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.
-rw-r--r--src/backend/nodes/outfuncs.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/backend/nodes/outfuncs.c b/src/backend/nodes/outfuncs.c
index 699cf8df831..61aea612fd4 100644
--- a/src/backend/nodes/outfuncs.c
+++ b/src/backend/nodes/outfuncs.c
@@ -1943,6 +1943,15 @@ _outDefElem(StringInfo str, DefElem *node)
}
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)
{
WRITE_NODE_TYPE("LOCKINGCLAUSE");
@@ -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;