diff options
author | David Rowley <drowley@postgresql.org> | 2022-11-02 15:29:31 +1300 |
---|---|---|
committer | David Rowley <drowley@postgresql.org> | 2022-11-02 15:29:31 +1300 |
commit | 3712e0ed47d126e9aa656a34dd56d52770b672b7 (patch) | |
tree | 8600598347088de8b84ba3d6c742fce889d10b39 | |
parent | 8e621c10c73a93e1078ad85fe70fb4478537a798 (diff) | |
download | postgresql-3712e0ed47d126e9aa656a34dd56d52770b672b7.tar.gz postgresql-3712e0ed47d126e9aa656a34dd56d52770b672b7.zip |
Fix outdated comment in tuplesort.h
This was outdated by 77bae396d.
Backpatch-through: 15, where 77bae396d was added
-rw-r--r-- | src/include/utils/tuplesort.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/include/utils/tuplesort.h b/src/include/utils/tuplesort.h index 59fbe2bd35b..15f2a4a7950 100644 --- a/src/include/utils/tuplesort.h +++ b/src/include/utils/tuplesort.h @@ -378,12 +378,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); |