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:
parent
eca02fee2c
commit
39cd6e2e91
@ -6,7 +6,7 @@
|
|||||||
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
|
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
|
||||||
* Portions Copyright (c) 1994, Regents of the University of California
|
* 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
|
* NOTES
|
||||||
* Every (plan) node in POSTGRES has an associated "out" routine which
|
* Every (plan) node in POSTGRES has an associated "out" routine which
|
||||||
@ -543,6 +543,20 @@ _outNoname(StringInfo str, Noname *node)
|
|||||||
node->keycount);
|
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
|
* Sort is a subclass of Noname
|
||||||
*/
|
*/
|
||||||
@ -1476,6 +1490,9 @@ _outNode(StringInfo str, void *obj)
|
|||||||
case T_Noname:
|
case T_Noname:
|
||||||
_outNoname(str, obj);
|
_outNoname(str, obj);
|
||||||
break;
|
break;
|
||||||
|
case T_Material:
|
||||||
|
_outMaterial(str, obj);
|
||||||
|
break;
|
||||||
case T_Sort:
|
case T_Sort:
|
||||||
_outSort(str, obj);
|
_outSort(str, obj);
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user