aboutsummaryrefslogtreecommitdiff
path: root/src/include/executor/nodeResultCache.h
blob: df671d16f96762d015bc7a548ef2de532a4a551a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*-------------------------------------------------------------------------
 *
 * 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 "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 */