nodeSort.h 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. /*-------------------------------------------------------------------------
  2. *
  3. * nodeSort.h
  4. *
  5. *
  6. *
  7. * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group
  8. * Portions Copyright (c) 1994, Regents of the University of California
  9. *
  10. * src/include/executor/nodeSort.h
  11. *
  12. *-------------------------------------------------------------------------
  13. */
  14. #ifndef NODESORT_H
  15. #define NODESORT_H
  16. #include "access/parallel.h"
  17. #include "nodes/execnodes.h"
  18. extern SortState *ExecInitSort(Sort *node, EState *estate, int eflags);
  19. extern void ExecEndSort(SortState *node);
  20. extern void ExecSortMarkPos(SortState *node);
  21. extern void ExecSortRestrPos(SortState *node);
  22. extern void ExecReScanSort(SortState *node);
  23. /* parallel instrumentation support */
  24. extern void ExecSortEstimate(SortState *node, ParallelContext *pcxt);
  25. extern void ExecSortInitializeDSM(SortState *node, ParallelContext *pcxt);
  26. extern void ExecSortInitializeWorker(SortState *node, ParallelWorkerContext *pwcxt);
  27. extern void ExecSortRetrieveInstrumentation(SortState *node);
  28. #endif /* NODESORT_H */