mirror of
https://github.com/postgres/postgres.git
synced 2025-06-04 12:42:24 +03:00
doc PG 18 relnotes: add GROUP BY column elimination item
With a nod to PG 9.6. Reported-by: jian he Discussion: https://postgr.es/m/CACJufxEqs=EXZETwtaOooTFhZrtxvSWg8M2uPfzjNtS3wQ6Dzw@mail.gmail.com
This commit is contained in:
parent
04b269da56
commit
24987c6f06
@ -284,6 +284,23 @@ This optimization can be disabled using enable_distinct_reordering.
|
|||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Author: David Rowley <drowley@postgresql.org>
|
||||||
|
2024-12-12 [bd10ec529] Detect redundant GROUP BY columns using UNIQUE indexes
|
||||||
|
-->
|
||||||
|
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
Ignore GROUP BY columns that are functionally dependent on other columns (Zhang Mingli, Jian He, David Rowley)
|
||||||
|
<ulink url="&commit_baseurl;bd10ec529">§</ulink>
|
||||||
|
</para>
|
||||||
|
|
||||||
|
<para>
|
||||||
|
If a GROUP BY clause includes all columns of a unique index, as well as other columns of the same table, those other columns are redundant and can be dropped
|
||||||
|
from the grouping. This was already true for non-deferred primary keys.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
Author: Richard Guo <rguo@postgresql.org>
|
Author: Richard Guo <rguo@postgresql.org>
|
||||||
2024-10-09 [67a54b9e8] Allow pushdown of HAVING clauses with grouping sets
|
2024-10-09 [67a54b9e8] Allow pushdown of HAVING clauses with grouping sets
|
||||||
|
Loading…
x
Reference in New Issue
Block a user