citus/src/include/distributed/intermediate_result_pruning.h

27 lines
822 B
C

/*-------------------------------------------------------------------------
*
* intermediate_result_pruning.h
* Functions for pruning intermediate result broadcasting.
*
* Copyright (c) Citus Data, Inc.
*
*-------------------------------------------------------------------------
*/
#ifndef INTERMEDIATE_RESULT_PRUNING_H
#define INTERMEDIATE_RESULT_PRUNING_H
#include "distributed/subplan_execution.h"
extern bool LogIntermediateResults;
extern List * FindSubPlansUsedInNode(Node *node);
extern List * FindAllWorkerNodesUsingSubplan(HTAB *intermediateResultsHash,
char *resultId);
extern HTAB * MakeIntermediateResultHTAB(void);
extern void RecordSubplanExecutionsOnNodes(HTAB *intermediateResultsHash,
DistributedPlan *distributedPlan);
#endif /* INTERMEDIATE_RESULT_PRUNING_H */