pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Fujii Masao <fujii@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: doc: Clarify scan method selection for REPACK and CLUSTER
Date: Tue, 24 Nov 2026 02:36:25 +0000
Message-ID: <E1xVgOO-000000005iB-33Xi@gemulon.postgresql.org> (raw)

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 <masao.fujii@gmail.com>
Author: Raja Sai Pranav <rajasaipranav0@gmail.com>
Reviewed-by: Fujii Masao <masao.fujii@gmail.com>
Discussion: https://postgr.es/m/CAHGQGwGhA-tzFGPV+oBQF1jK==tSkmwM=z_z9p+bhb-yYCAzLA@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(-)



Message-ID: <E1xVgOO-000000005iB-33Xi@gemulon.postgresql.org>
Permalink:  ../E1xVgOO-000000005iB-33Xi@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1xVgOO-000000005iB-33Xi@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: fujii@postgresql.org
  Subject: Re: pgsql: doc: Clarify scan method selection for REPACK and CLUSTER
  In-Reply-To: <E1xVgOO-000000005iB-33Xi@gemulon.postgresql.org>
  References: <E1xVgOO-000000005iB-33Xi@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox