Skip to content

Commit ee8db41

Browse files
committed
Doc: clarify enable_indexscan=off also disabled Index Only Scans
Disabling enable_indexscan has always also disabled Index Only Scans. Here we make that more clear in the documentation in an attempt to prevent future complaints complaining about this expected behavior. Reported-by: Melanie Plageman Author: David G. Johnston, David Rowley Backpatch-through: 12, oldest supported version Discussion: https://postgr.es/m/CAAKRu_atV=kovgpaLREyG68PB5+ncKvJ2UNoeRetEgyC3Yb5Sw@mail.gmail.com
1 parent 1e74e31 commit ee8db41

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

doc/src/sgml/config.sgml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4796,8 +4796,9 @@ ANY <replaceable class="parameter">num_sync</replaceable> ( <replaceable class="
47964796
</term>
47974797
<listitem>
47984798
<para>
4799-
Enables or disables the query planner's use of index-scan plan
4800-
types. The default is <literal>on</literal>.
4799+
Enables or disables the query planner's use of index-scan and
4800+
index-only-scan plan types. The default is <literal>on</literal>.
4801+
Also see <xref linkend="guc-enable-indexonlyscan"/>.
48014802
</para>
48024803
</listitem>
48034804
</varlistentry>
@@ -4812,7 +4813,9 @@ ANY <replaceable class="parameter">num_sync</replaceable> ( <replaceable class="
48124813
<para>
48134814
Enables or disables the query planner's use of index-only-scan plan
48144815
types (see <xref linkend="indexes-index-only-scans"/>).
4815-
The default is <literal>on</literal>.
4816+
The default is <literal>on</literal>. The
4817+
<xref linkend="guc-enable-indexscan"/> setting must also be
4818+
enabled to have the query planner consider index-only-scans.
48164819
</para>
48174820
</listitem>
48184821
</varlistentry>

0 commit comments

Comments
 (0)