Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use processed group clause in PG16 (take 2) #7091

Merged

Conversation

fabriziomello
Copy link
Contributor

@fabriziomello fabriziomello commented Jul 2, 2024

In #6377 we fixed an ORDER BY/GROUP BY expression not found in targetlist by using the root->processed_groupClause instead of parse->groupClause due to an optimization introduced in PG16 that removes redundant grouping and distinct columns.

But looks like we didn't change all necessary places, specially our HashAggregate optimization.

Disable-check: force-changelog-file

In timescale#6377 we fixed an `ORDER BY/GROUP BY expression not found in
targetlist` by using the `root->processed_groupClause` instead of
`parse->groupClause` due to an optimization introduced in PG16 that
removes redundant grouping and distinct columns.

But looks like we didn't change all necessary places, specially our
HashAggregate optimization.
Copy link

codecov bot commented Jul 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.76%. Comparing base (59f50f2) to head (bcf05ca).
Report is 237 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7091      +/-   ##
==========================================
+ Coverage   80.06%   81.76%   +1.69%     
==========================================
  Files         190      200      +10     
  Lines       37181    37323     +142     
  Branches     9450     9738     +288     
==========================================
+ Hits        29770    30516     +746     
+ Misses       2997     2894     -103     
+ Partials     4414     3913     -501     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@svenklemm svenklemm merged commit 038b575 into timescale:main Jul 2, 2024
42 of 43 checks passed
@pallavisontakke pallavisontakke mentioned this pull request Jul 2, 2024
svenklemm added a commit that referenced this pull request Jul 2, 2024
This release contains bug fixes since the 2.15.2 release.
Best practice is to upgrade at the next available opportunity.

**Migrating from self-hosted TimescaleDB v2.14.x and earlier**

After you run `ALTER EXTENSION`, you must run [this SQL
script](https://github.com/timescale/timescaledb-extras/blob/master/utils/2.15.X-fix_hypertable_foreign_keys.sql).
For more details, see the following pull request
[#6797](#6797).

If you are migrating from TimescaleDB v2.15.0, v2.15.1 or v2.15.2, no
changes are required.

**Bugfixes**
* #7061: Fix the handling of multiple unique indexes in a compressed
INSERT.
* #7080: Fix the `corresponding equivalence member not found` error.
* #7088: Fix the leaks in the DML functions.
* #7035: Fix the error when acquiring a tuple lock on the OSM chunks on
the replica.
* #7091: Fix ORDER BY/GROUP BY expression not found in targetlist on
PG16

**Thanks**
* @Kazmirchuk for reporting the issue about leaks with the functions in
DML.

---------

Signed-off-by: Sven Klemm <31455525+svenklemm@users.noreply.github.com>
Co-authored-by: Sven Klemm <31455525+svenklemm@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants