Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit39cd6e2

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 parenteca02fe commit39cd6e2

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

‎src/backend/nodes/outfuncs.c

Lines changed: 18 additions & 1 deletion
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+
staticvoid
550+
_outMaterial(StringInfostr,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
caseT_Noname:
14771491
_outNoname(str,obj);
14781492
break;
1493+
caseT_Material:
1494+
_outMaterial(str,obj);
1495+
break;
14791496
caseT_Sort:
14801497
_outSort(str,obj);
14811498
break;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp