mirror of
https://github.com/postgres/postgres.git
synced 2025-07-11 10:01:57 +03:00
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/20210708165145.GG1176@momjian.us Backpatch-through: 14, where Result Cache was introduced
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user