citus/src/include/distributed/insert_select_planner.h

39 lines
1.2 KiB
C

/*-------------------------------------------------------------------------
*
* insert_select_planner.h
*
* Declarations for public functions and types related to planning
* INSERT..SELECT commands.
*
* Copyright (c) 2017, Citus Data, Inc.
*
*-------------------------------------------------------------------------
*/
#ifndef INSERT_SELECT_PLANNER_H
#define INSERT_SELECT_PLANNER_H
#include "postgres.h"
#include "distributed/multi_physical_planner.h"
#include "distributed/distributed_planner.h"
#include "nodes/execnodes.h"
#include "nodes/parsenodes.h"
#include "nodes/plannodes.h"
extern bool InsertSelectIntoDistributedTable(Query *query);
extern bool InsertSelectIntoLocalTable(Query *query);
extern Query * ReorderInsertSelectTargetLists(Query *originalQuery,
RangeTblEntry *insertRte,
RangeTblEntry *subqueryRte);
extern void CoordinatorInsertSelectExplainScan(CustomScanState *node, List *ancestors,
struct ExplainState *es);
extern DistributedPlan * CreateInsertSelectPlan(Query *originalQuery,
PlannerRestrictionContext *
plannerRestrictionContext);
#endif /* INSERT_SELECT_PLANNER_H */