]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Fix outdated comment in tuplesort.h
authorDavid Rowley <drowley@postgresql.org>
Wed, 2 Nov 2022 02:29:49 +0000 (15:29 +1300)
committerDavid Rowley <drowley@postgresql.org>
Wed, 2 Nov 2022 02:29:49 +0000 (15:29 +1300)
This was outdated by 77bae396d.

Backpatch-through: 15, where 77bae396d was added

src/include/utils/tuplesort.h

index 364cf132fcb63638a7d55029d07bba8c6e407934..a2eaeabee6a206b6ae2fa07da6f37d9ef22cc27f 100644 (file)
@@ -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);