outfuncs.c was missing a print routine for Material plan nodes, leading

to trouble when trying to EXPLAIN VERBOSE a plan containing one.
This commit is contained in:
Tom Lane 2000-03-24 02:58:25 +00:00
parent eca02fee2c
commit 39cd6e2e91
1 changed files with 18 additions and 1 deletions

View File

@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Header: /cvsroot/pgsql/src/backend/nodes/outfuncs.c,v 1.112 2000/03/22 22:08:32 tgl Exp $
* $Header: /cvsroot/pgsql/src/backend/nodes/outfuncs.c,v 1.113 2000/03/24 02:58:25 tgl Exp $
*
* NOTES
* Every (plan) node in POSTGRES has an associated "out" routine which
@ -543,6 +543,20 @@ _outNoname(StringInfo str, Noname *node)
node->keycount);
}
/*
* Material is a subclass of Noname
*/
static void
_outMaterial(StringInfo str, Material *node)
{
appendStringInfo(str, " MATERIAL ");
_outPlanInfo(str, (Plan *) node);
appendStringInfo(str, " :nonameid %u :keycount %d ",
node->nonameid,
node->keycount);
}
/*
* Sort is a subclass of Noname
*/
@ -1476,6 +1490,9 @@ _outNode(StringInfo str, void *obj)
case T_Noname:
_outNoname(str, obj);
break;
case T_Material:
_outMaterial(str, obj);
break;
case T_Sort:
_outSort(str, obj);
break;