mirror of
https://github.com/postgres/postgres.git
synced 2025-07-03 20:02:46 +03:00
Be more realistic about plans involving Materialize nodes: take their
cost into account while planning.
This commit is contained in:
@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/nodes/outfuncs.c,v 1.184 2002/11/30 00:08:16 tgl Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/nodes/outfuncs.c,v 1.185 2002/11/30 05:21:02 tgl Exp $
|
||||
*
|
||||
* NOTES
|
||||
* Every node type that can appear in stored rules' parsetrees *must*
|
||||
@ -1010,6 +1010,16 @@ _outResultPath(StringInfo str, ResultPath *node)
|
||||
WRITE_NODE_FIELD(constantqual);
|
||||
}
|
||||
|
||||
static void
|
||||
_outMaterialPath(StringInfo str, MaterialPath *node)
|
||||
{
|
||||
WRITE_NODE_TYPE("MATERIALPATH");
|
||||
|
||||
_outPathInfo(str, (Path *) node);
|
||||
|
||||
WRITE_NODE_FIELD(subpath);
|
||||
}
|
||||
|
||||
static void
|
||||
_outNestPath(StringInfo str, NestPath *node)
|
||||
{
|
||||
@ -1557,6 +1567,9 @@ _outNode(StringInfo str, void *obj)
|
||||
case T_ResultPath:
|
||||
_outResultPath(str, obj);
|
||||
break;
|
||||
case T_MaterialPath:
|
||||
_outMaterialPath(str, obj);
|
||||
break;
|
||||
case T_NestPath:
|
||||
_outNestPath(str, obj);
|
||||
break;
|
||||
|
Reference in New Issue
Block a user