postgres.git / summary / log / commit / refs
commit 23f44276123031d21cffeb699d9863149e1c734f
Author: David Rowley <drowley@postgresql.org>
Date: Wed Nov 02 02:29:49 2022 +0000
First released in: 16.0, 15.1
Fix outdated comment in tuplesort.h
This was outdated by 77bae396d.
Backpatch-through: 15, where 77bae396d was added
src/include/utils/tuplesort.h | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/src/include/utils/tuplesort.h b/src/include/utils/tuplesort.h
index 364cf132fcb..a2eaeabee6a 100644
--- a/src/include/utils/tuplesort.h
+++ b/src/include/utils/tuplesort.h
@@ -279,12 +279,11 @@ extern void tuplesort_initialize_shared(Sharedsort *shared, int nWorkers,
extern void tuplesort_attach_shared(Sharedsort *shared, dsm_segment *seg);
/*
- * These routines may only be called if randomAccess was specified 'true'.
- * Likewise, backwards scan in gettuple/getdatum is only allowed if
- * randomAccess was specified. Note that parallel sorts do not support
- * randomAccess.
+ * These routines may only be called if TUPLESORT_RANDOMACCESS was specified
+ * during tuplesort_begin_*. Additionally backwards scan in gettuple/getdatum
+ * also require TUPLESORT_RANDOMACCESS. Note that parallel sorts do not
+ * support random access.
*/
-
extern void tuplesort_rescan(Tuplesortstate *state);
extern void tuplesort_markpos(Tuplesortstate *state);
extern void tuplesort_restorepos(Tuplesortstate *state);
[parent: c3d16eb3d5f1]