Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 39cd6e2

Browse files
committed
outfuncs.c was missing a print routine for Material plan nodes, leading
to trouble when trying to EXPLAIN VERBOSE a plan containing one.
1 parent eca02fe commit 39cd6e2

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

src/backend/nodes/outfuncs.c

+18-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
77
* Portions Copyright (c) 1994, Regents of the University of California
88
*
9-
* $Header: /cvsroot/pgsql/src/backend/nodes/outfuncs.c,v 1.112 2000/03/22 22:08:32 tgl Exp $
9+
* $Header: /cvsroot/pgsql/src/backend/nodes/outfuncs.c,v 1.113 2000/03/24 02:58:25 tgl Exp $
1010
*
1111
* NOTES
1212
* Every (plan) node in POSTGRES has an associated "out" routine which
@@ -543,6 +543,20 @@ _outNoname(StringInfo str, Noname *node)
543543
node->keycount);
544544
}
545545

546+
/*
547+
* Material is a subclass of Noname
548+
*/
549+
static void
550+
_outMaterial(StringInfo str, Material *node)
551+
{
552+
appendStringInfo(str, " MATERIAL ");
553+
_outPlanInfo(str, (Plan *) node);
554+
555+
appendStringInfo(str, " :nonameid %u :keycount %d ",
556+
node->nonameid,
557+
node->keycount);
558+
}
559+
546560
/*
547561
* Sort is a subclass of Noname
548562
*/
@@ -1476,6 +1490,9 @@ _outNode(StringInfo str, void *obj)
14761490
case T_Noname:
14771491
_outNoname(str, obj);
14781492
break;
1493+
case T_Material:
1494+
_outMaterial(str, obj);
1495+
break;
14791496
case T_Sort:
14801497
_outSort(str, obj);
14811498
break;

0 commit comments

Comments
 (0)