summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2010-11-13 00:35:13 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2010-11-13 00:35:13 -0500
commit40da2c778c2086171fa7868e54d254754766d26e (patch)
tree544ebe3cc70100f511a5148e6a1b121fb40a860d
parentfaea08353120ed455df84ba30c07505248f5332b (diff)
downloadpostgresql-40da2c778c2086171fa7868e54d254754766d26e.tar.gz
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 3d2b2f7972..75a9fa39f4 100644
--- a/src/backend/nodes/outfuncs.c
+++ b/src/backend/nodes/outfuncs.c
@@ -1376,6 +1376,15 @@ _outDefElem(StringInfo str, DefElem *node)
}
static void
+_outInhRelation(StringInfo str, InhRelation *node)
+{
+ WRITE_NODE_TYPE("INHRELATION");
+
+ WRITE_NODE_FIELD(relation);
+ WRITE_BOOL_FIELD(including_defaults);
+}
+
+static void
_outLockingClause(StringInfo str, LockingClause *node)
{
WRITE_NODE_TYPE("LOCKINGCLAUSE");
@@ -2099,6 +2108,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;