</listitem>
</varlistentry>
+ <varlistentry id="guc-enable-groupby-reordering" xreflabel="enable_group_by_reordering">
+ <term><varname>enable_group_by_reordering</varname> (<type>boolean</type>)
+ <indexterm>
+ <primary><varname>enable_group_by_reordering</varname> configuration parameter</primary>
+ </indexterm>
+ </term>
+ <listitem>
+ <para>
+ Controls if the query planner will produce a plan which will provide
+ <literal>GROUP BY</literal> keys sorted in the order of keys of
+ a child node of the plan, such as an index scan. When disabled, the
+ query planner will produce a plan with <literal>GROUP BY</literal>
+ keys only sorted to match the <literal>ORDER BY</literal> clause,
+ if any. When enabled, the planner will try to produce a more
+ efficient plan. The default value is <literal>on</literal>.
+ </para>
+ </listitem>
+ </varlistentry>
+
<varlistentry id="guc-enable-hashagg" xreflabel="enable_hashagg">
<term><varname>enable_hashagg</varname> (<type>boolean</type>)
<indexterm>