summaryrefslogtreecommitdiff
path: root/src/include/utils
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/utils')
-rw-r--r--src/include/utils/tuplesort.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/include/utils/tuplesort.h b/src/include/utils/tuplesort.h
index e351536d47..e2b3c033e0 100644
--- a/src/include/utils/tuplesort.h
+++ b/src/include/utils/tuplesort.h
@@ -23,6 +23,9 @@
#include "access/itup.h"
#include "executor/tuptable.h"
#include "fmgr.h"
+#ifdef PGXC
+#include "pgxc/execRemote.h"
+#endif
#include "utils/relcache.h"
@@ -64,6 +67,13 @@ extern Tuplesortstate *tuplesort_begin_index_hash(Relation indexRel,
extern Tuplesortstate *tuplesort_begin_datum(Oid datumType,
Oid sortOperator, bool nullsFirstFlag,
int workMem, bool randomAccess);
+#ifdef PGXC
+extern Tuplesortstate *tuplesort_begin_merge(TupleDesc tupDesc,
+ int nkeys, AttrNumber *attNums,
+ Oid *sortOperators, bool *nullsFirstFlags,
+ RemoteQueryState *combiner,
+ int workMem);
+#endif
extern void tuplesort_set_bound(Tuplesortstate *state, int64 bound);