doc: Clarify scan method selection for REPACK and CLUSTER

The documentation described using enable_sort to avoid sorting during
clustering, but did not explain how enable_indexscan and enable_seqscan
affected that choice. This left the conditions for avoiding sorting
unclear.

Document these settings together with the scan method selection rules
for B-tree indexes. Explain that enable_indexscan = off forces a
sequential scan and sort regardless of the other two settings.
Otherwise, disabling enable_sort or enable_seqscan favors an index
scan, provided the index is usable.

Suggested-by: Fujii Masao <[email protected]>
Author: Raja Sai Pranav <[email protected]>
Reviewed-by: Fujii Masao <[email protected]>
Discussion: 
https://postgr.es/m/CAHGQGwGhA-tzFGPV+oBQF1jK==tSkmwM=z_z9p+bhb-yyca...@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/f5ead259821bb5a10d07c0e9b4f7016706d787ee

Modified Files
--------------
doc/src/sgml/ref/repack.sgml | 17 ++++++++++++++---
1 file changed, 14 insertions(+), 3 deletions(-)

Reply via email to