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

Release 2.17.0 #7328

Merged

Conversation

pallavisontakke
Copy link
Contributor

@pallavisontakke pallavisontakke commented Oct 8, 2024

This release adds support for PostgreSQL 17, significantly improves the performance of continuous aggregate refreshes,
and contains performance improvements for analytical queries and delete operations over compressed hypertables.
We recommend that you upgrade at the next available opportunity.

Highlighted features in TimescaleDB v2.17.0

  • Full PostgreSQL 17 support for all existing features. TimescaleDB v2.17 is available for PostgreSQL 14, 15, 16, and 17.

  • Significant performance improvements for continuous aggregate policies: continuous aggregate refresh is now using
    merge instead of deleting old materialized data and re-inserting.

    This update can decrease dramatically the amount of data that must be written on the continuous aggregate in the
    presence of a small number of changes, reduce the i/o cost of refreshing a continuous aggregate, and generate fewer
    Write-Ahead Logs (WAL).
    Overall, continuous aggregate policies will be more lightweight, use less system resources, and complete faster.

  • Increased performance for real-time analytical queries over compressed hypertables:
    we are excited to introduce additional Single Instruction, Multiple Data (SIMD) vectorization optimization to our
    engine by supporting vectorized execution for queries that group by using the segment_by column(s) and
    aggregate using the basic aggregate functions (sum, count, avg, min, max).

    Stay tuned for more to come in follow-up releases! Support for grouping on additional columns, filtered aggregation,
    vectorized expressions, and time_bucket is coming soon.

  • Improved performance of deletes on compressed hypertables when a large amount of data is affected.

    This improvement speeds up operations that delete whole segments by skipping the decompression step.
    It is enabled for all deletes that filter by the segment_by column(s).

PostgreSQL 14 deprecation announcement

We will continue supporting PostgreSQL 14 until April 2025. Closer to that time, we will announce the specific
version of TimescaleDB in which PostgreSQL 14 support will not be included going forward.

Features

Bug fixes

Thanks

  • @MiguelTubio for reporting and fixing the Windows build error.
  • @posuch for reporting the misleading extension description in the generic loader packages.
  • @snyrkill for discovering and reporting the issue with continuous aggregates built on top of continuous aggregates.

Disable-check: force-changelog-file
Disable-check: commit-count

This release contains performance improvements and bug fixes since
the 2.16.1 release. We recommend that you upgrade at the next
available opportunity.

**Features**
* timescale#6882: Allow DELETE on the compressed chunks without decompression.
* timescale#7033 Use MERGE statement on CAgg Refresh
* timescale#7126: Add functions to show the compression information.
* timescale#7147: Vectorize partial aggregation for `sum
* timescale#7200: Vectorize common aggregate functions like `min`, `max`, `sum`, `avg`, `stddev`, `variance` for compressed columns of arithmetic types, when there is grouping on segmentby columns or no grouping.
* timescale#7204: Track additional extensions in telemetry.
* timescale#7207: Refactor the `decompress_batches_scan` functions for easier maintenance.
* timescale#7209: Add a function to drop the `osm` chunk.
* timescale#7275: Add support for RETURNING clause for MERGE
* timescale#7295 Support ALTER TABLE SET ACCESS METHOD on hypertable

**Bugfixes**
* timescale#7187: Fix the string literal length for the `compressed_data_info` function.
* timescale#7191: Fix creating default indexes on chunks when migrating the data.
* timescale#7195: Fix the `segment by` and `order by` checks when dropping a column from a compressed hypertable.
* timescale#7201: Use the generic extension description when building `apt` and `rpm` loader packages.
* timescale#7227: Add an index to the `compression_chunk_size` catalog table.
* timescale#7229: Fix the foreign key constraints where the index and the constraint column order are different.
* timescale#7230: Do not propagate the foreign key constraints to the `osm` chunk.
* timescale#7234: Release the cache after accessing the cache entry.
* timescale#7258 Force English in the pg_config command executed by cmake to avoid unexpected building errors
* timescale#7270 Fix memory leak in compressed DML batch filtering
* timescale#7286: Fix index column check while searching for index
* timescale#7290 Add check for NULL offset for caggs built on top of caggs
* timescale#7301 Make foreign key behaviour for hypertables consistent
* timescale#7318: Fix chunk skipping range filtering
* timescale#7320 Set license specific extension comment in install script

**Thanks**
* @MiguelTubio for reporting and fixing a Windows build error
* @posuch for reporting the misleading extension description in the generic loader packages.
* @snyrkill for discovering and reporting the issue
@pallavisontakke pallavisontakke marked this pull request as draft October 8, 2024 09:45
Copy link

codecov bot commented Oct 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (2.17.x@2959bd4). Learn more about missing BASE report.

Additional details and impacted files
@@            Coverage Diff            @@
##             2.17.x    #7328   +/-   ##
=========================================
  Coverage          ?   82.23%           
=========================================
  Files             ?      217           
  Lines             ?    38854           
  Branches          ?    10014           
=========================================
  Hits              ?    31953           
  Misses            ?     2920           
  Partials          ?     3981           

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

Copy link

@philkra philkra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@atovpeko atovpeko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved with 2 minor things. Thanks!

CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
@pallavisontakke pallavisontakke merged commit 43ef9b7 into timescale:2.17.x Oct 8, 2024
49 of 50 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants