summaryrefslogtreecommitdiff
path: root/src/backend/nodes/outfuncs.c
diff options
context:
space:
mode:
authorDavid Rowley2021-07-14 00:43:58 +0000
committerDavid Rowley2021-07-14 00:43:58 +0000
commit83f4fcc65503c5d4e5d5eefc8e7a70d3c9a6496f (patch)
tree23c0962d1c255e8e6ca5cc29a0d1fe68e2d1223d /src/backend/nodes/outfuncs.c
parentd68a00391214be2020e49be4b55f761d47a5c229 (diff)
Change the name of the Result Cache node to Memoize
"Result Cache" was never a great name for this node, but nobody managed to come up with another name that anyone liked enough. That was until David Johnston mentioned "Node Memoization", which Tom Lane revised to just "Memoize". People seem to like "Memoize", so let's do the rename. Reviewed-by: Justin Pryzby Discussion: https://postgr.es/m/[email protected] Backpatch-through: 14, where Result Cache was introduced
Diffstat (limited to 'src/backend/nodes/outfuncs.c')
-rw-r--r--src/backend/nodes/outfuncs.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/backend/nodes/outfuncs.c b/src/backend/nodes/outfuncs.c
index e09e4f77fea..e73be21bd6c 100644
--- a/src/backend/nodes/outfuncs.c
+++ b/src/backend/nodes/outfuncs.c
@@ -848,9 +848,9 @@ _outMaterial(StringInfo str, const Material *node)
}
static void
-_outResultCache(StringInfo str, const ResultCache *node)
+_outMemoize(StringInfo str, const Memoize *node)
{
- WRITE_NODE_TYPE("RESULTCACHE");
+ WRITE_NODE_TYPE("MEMOIZE");
_outPlanInfo(str, (const Plan *) node);
@@ -1949,9 +1949,9 @@ _outMaterialPath(StringInfo str, const MaterialPath *node)
}
static void
-_outResultCachePath(StringInfo str, const ResultCachePath *node)
+_outMemoizePath(StringInfo str, const MemoizePath *node)
{
- WRITE_NODE_TYPE("RESULTCACHEPATH");
+ WRITE_NODE_TYPE("MEMOIZEPATH");
_outPathInfo(str, (const Path *) node);
@@ -3961,8 +3961,8 @@ outNode(StringInfo str, const void *obj)
case T_Material:
_outMaterial(str, obj);
break;
- case T_ResultCache:
- _outResultCache(str, obj);
+ case T_Memoize:
+ _outMemoize(str, obj);
break;
case T_Sort:
_outSort(str, obj);
@@ -4201,8 +4201,8 @@ outNode(StringInfo str, const void *obj)
case T_MaterialPath:
_outMaterialPath(str, obj);
break;
- case T_ResultCachePath:
- _outResultCachePath(str, obj);
+ case T_MemoizePath:
+ _outMemoizePath(str, obj);
break;
case T_UniquePath:
_outUniquePath(str, obj);