mirror of https://github.com/postgres/postgres
"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 introducedpull/90/head
parent
6201fa3c16
commit
47ca483644
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,32 @@ |
||||
/*-------------------------------------------------------------------------
|
||||
* |
||||
* nodeMemoize.h |
||||
* |
||||
* |
||||
* |
||||
* Portions Copyright (c) 2021, PostgreSQL Global Development Group |
||||
* Portions Copyright (c) 1994, Regents of the University of California |
||||
* |
||||
* src/include/executor/nodeMemoize.h |
||||
* |
||||
*------------------------------------------------------------------------- |
||||
*/ |
||||
#ifndef NODEMEMOIZE_H |
||||
#define NODEMEMOIZE_H |
||||
|
||||
#include "access/parallel.h" |
||||
#include "nodes/execnodes.h" |
||||
|
||||
extern MemoizeState *ExecInitMemoize(Memoize *node, EState *estate, int eflags); |
||||
extern void ExecEndMemoize(MemoizeState *node); |
||||
extern void ExecReScanMemoize(MemoizeState *node); |
||||
extern double ExecEstimateCacheEntryOverheadBytes(double ntuples); |
||||
extern void ExecMemoizeEstimate(MemoizeState *node, |
||||
ParallelContext *pcxt); |
||||
extern void ExecMemoizeInitializeDSM(MemoizeState *node, |
||||
ParallelContext *pcxt); |
||||
extern void ExecMemoizeInitializeWorker(MemoizeState *node, |
||||
ParallelWorkerContext *pwcxt); |
||||
extern void ExecMemoizeRetrieveInstrumentation(MemoizeState *node); |
||||
|
||||
#endif /* NODEMEMOIZE_H */ |
@ -1,32 +0,0 @@ |
||||
/*-------------------------------------------------------------------------
|
||||
* |
||||
* nodeResultCache.h |
||||
* |
||||
* |
||||
* |
||||
* Portions Copyright (c) 2021, PostgreSQL Global Development Group |
||||
* Portions Copyright (c) 1994, Regents of the University of California |
||||
* |
||||
* src/include/executor/nodeResultCache.h |
||||
* |
||||
*------------------------------------------------------------------------- |
||||
*/ |
||||
#ifndef NODERESULTCACHE_H |
||||
#define NODERESULTCACHE_H |
||||
|
||||
#include "access/parallel.h" |
||||
#include "nodes/execnodes.h" |
||||
|
||||
extern ResultCacheState *ExecInitResultCache(ResultCache *node, EState *estate, int eflags); |
||||
extern void ExecEndResultCache(ResultCacheState *node); |
||||
extern void ExecReScanResultCache(ResultCacheState *node); |
||||
extern double ExecEstimateCacheEntryOverheadBytes(double ntuples); |
||||
extern void ExecResultCacheEstimate(ResultCacheState *node, |
||||
ParallelContext *pcxt); |
||||
extern void ExecResultCacheInitializeDSM(ResultCacheState *node, |
||||
ParallelContext *pcxt); |
||||
extern void ExecResultCacheInitializeWorker(ResultCacheState *node, |
||||
ParallelWorkerContext *pwcxt); |
||||
extern void ExecResultCacheRetrieveInstrumentation(ResultCacheState *node); |
||||
|
||||
#endif /* NODERESULTCACHE_H */ |
Loading…
Reference in new issue