mirror of
https://github.com/postgres/postgres.git
synced 2025-07-09 22:41:56 +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:
@ -2216,12 +2216,12 @@ _readMaterial(void)
|
||||
}
|
||||
|
||||
/*
|
||||
* _readResultCache
|
||||
* _readMemoize
|
||||
*/
|
||||
static ResultCache *
|
||||
_readResultCache(void)
|
||||
static Memoize *
|
||||
_readMemoize(void)
|
||||
{
|
||||
READ_LOCALS(ResultCache);
|
||||
READ_LOCALS(Memoize);
|
||||
|
||||
ReadCommonPlan(&local_node->plan);
|
||||
|
||||
@ -2923,8 +2923,8 @@ parseNodeString(void)
|
||||
return_value = _readHashJoin();
|
||||
else if (MATCH("MATERIAL", 8))
|
||||
return_value = _readMaterial();
|
||||
else if (MATCH("RESULTCACHE", 11))
|
||||
return_value = _readResultCache();
|
||||
else if (MATCH("MEMOIZE", 7))
|
||||
return_value = _readMemoize();
|
||||
else if (MATCH("SORT", 4))
|
||||
return_value = _readSort();
|
||||
else if (MATCH("INCREMENTALSORT", 15))
|
||||
|
Reference in New Issue
Block a user