mirror of
https://github.com/postgres/postgres.git
synced 2025-07-26 01:22:12 +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:
@ -1495,11 +1495,11 @@ typedef struct MaterialPath
|
||||
} MaterialPath;
|
||||
|
||||
/*
|
||||
* ResultCachePath represents a ResultCache plan node, i.e., a cache that
|
||||
* caches tuples from parameterized paths to save the underlying node from
|
||||
* having to be rescanned for parameter values which are already cached.
|
||||
* MemoizePath represents a Memoize plan node, i.e., a cache that caches
|
||||
* tuples from parameterized paths to save the underlying node from having to
|
||||
* be rescanned for parameter values which are already cached.
|
||||
*/
|
||||
typedef struct ResultCachePath
|
||||
typedef struct MemoizePath
|
||||
{
|
||||
Path path;
|
||||
Path *subpath; /* outerpath to cache tuples from */
|
||||
@ -1511,7 +1511,7 @@ typedef struct ResultCachePath
|
||||
uint32 est_entries; /* The maximum number of entries that the
|
||||
* planner expects will fit in the cache, or 0
|
||||
* if unknown */
|
||||
} ResultCachePath;
|
||||
} MemoizePath;
|
||||
|
||||
/*
|
||||
* UniquePath represents elimination of distinct rows from the output of
|
||||
@ -2111,7 +2111,7 @@ typedef struct RestrictInfo
|
||||
Selectivity left_mcvfreq; /* left side's most common val's freq */
|
||||
Selectivity right_mcvfreq; /* right side's most common val's freq */
|
||||
|
||||
/* hash equality operator used for result cache, else InvalidOid */
|
||||
/* hash equality operator used for memoize nodes, else InvalidOid */
|
||||
Oid hasheqoperator;
|
||||
} RestrictInfo;
|
||||
|
||||
|
Reference in New Issue
Block a user