1 /*------------------------------------------------------------------------- 2 * 3 * nodeIncrementalSort.h 4 * 5 * Portions Copyright (c) 1996-2021, PostgreSQL Global Development Group 6 * Portions Copyright (c) 1994, Regents of the University of California 7 * 8 * src/include/executor/nodeIncrementalSort.h 9 * 10 *------------------------------------------------------------------------- 11 */ 12 #ifndef NODEINCREMENTALSORT_H 13 #define NODEINCREMENTALSORT_H 14 15 #include "access/parallel.h" 16 #include "nodes/execnodes.h" 17 18 extern IncrementalSortState *ExecInitIncrementalSort(IncrementalSort *node, EState *estate, int eflags); 19 extern void ExecEndIncrementalSort(IncrementalSortState *node); 20 extern void ExecReScanIncrementalSort(IncrementalSortState *node); 21 22 /* parallel instrumentation support */ 23 extern void ExecIncrementalSortEstimate(IncrementalSortState *node, ParallelContext *pcxt); 24 extern void ExecIncrementalSortInitializeDSM(IncrementalSortState *node, ParallelContext *pcxt); 25 extern void ExecIncrementalSortInitializeWorker(IncrementalSortState *node, ParallelWorkerContext *pcxt); 26 extern void ExecIncrementalSortRetrieveInstrumentation(IncrementalSortState *node); 27 28 #endif /* NODEINCREMENTALSORT_H */ 29