Changelog

Oct 30, 2024

TimescaleDB extension 2.17.1 for Aiven for PostgreSQL® released

TimescaleDB extension version 2.17.1 is now available for Aiven for PostgreSQL®. It introduces new features, performance improvements, and bug fixes on top of release 2.16.1. Upgrade to 2.17.1 at your earliest convenience to make sure you use the most robust and secure version available.

Refer to TimescaleDB release notes for all the changes introduced in this release.

Key new features

  • Full PostgreSQL 17 support for all existing features:
    TimescaleDB 2.17.1 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:
    Introducing 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)
  • Improved performance of deletes on compressed hypertables when a large amount of data is affected:
    Speeding up operations that delete whole segments by skipping the decompression step (enabled for all deletes that filter by segment_by columns)

PostgreSQL 14 deprecation announcement

PostgreSQL 14 will be supported until April 2025. Closer to that time, there will be an announcement of the specific version of TimescaleDB in which PostgreSQL 14 support will not be included going forward.

New features

  • #7360 Add chunk skipping GUC
  • #6882: Allow delete of full segments on compressed chunks without decompression.
  • #7033: Use merge statement on continuous aggregates refresh.
  • #7126: Add functions to show the compression information.
  • #7147: Vectorize partial aggregation for sum(int4) with grouping on segment by columns.
  • #7204: Track additional extensions in telemetry.
  • #7207: Refactor the decompress_batches_scan functions for easier maintenance.
  • #7209: Add a function to drop the osm chunk.
  • #7275: Add support for the returning clause for merge.
  • #7200: Vectorize common aggregate functions like min, max, sum, avg, stddev, variance for compressed columns of arithmetic types, when there is grouping on segment by columns or no grouping.

Bug fixes

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