Skip to content

Releases: timescale/timescaledb

2.15.0 (2024-05-08)

08 May 15:34
Compare
Choose a tag to compare

This release contains the performance improvements and bug fixes introduced since
TimescaleDB v2.14.2. Best practice is to upgrade at the next available opportunity.

Highlighted features in this release

  • Continuous Aggregate now supports time_bucket with origin and/or offset.
  • The following improvements have been introduced for hypertable compression:
    • Added planner support to check more kinds of WHERE conditions before decompression.
      This reduces the number of rows that have to be decompressed.
    • You can now use minmax sparse indexes when you compress columns with btree indexes.
    • Make compression uses the defaults functions.
    • Vectorize filters in the WHERE clause contain text equality operators and LIKE expressions.

Deprecation warning

For self-hosted TimescaleDB v2.15.0 deployments only

After you run ALTER EXTENSION, you must run this SQL script. For more details, see the following pull requests #6797.

Complete list of features

  • #6382 Support for time_bucket with origin and offset in CAggs.
  • #6696 Improve the defaults for compression segment_by and order_by.
  • #6705 Add sparse minmax indexes for compressed columns that have uncompressed btree indexes.
  • #6754 Allow DROP CONSTRAINT on compressed hypertables.
  • #6767 Add metadata table _timestaledb_internal.bgw_job_stat_history for tracking job execution history.
  • #6798 Prevent usage of the deprecated time_bucket_ng in the CAgg definition.
  • #6810 Add telemetry for access methods.
  • #6811 Remove the no longer relevant timescaledb.allow_install_without_preload GUC.
  • #6837 Add migration path for CAggs using time_bucket_ng.
  • #6865 Update the watermark when truncating a CAgg.

Complete list of bugfixes

  • #6617 Fix error in show_chunks.
  • #6621 Remove metadata when dropping chunks.
  • #6677 Fix snapshot usage in CAgg invalidation scanner.
  • #6698 Define meaning of 0 retries for jobs as no retries.
  • #6717 Fix handling of compressed tables with primary or unique index in COPY path.
  • #6726 Fix constify cagg_watermark using window function when querying a CAgg.
  • #6729 Fix NULL start value handling in CAgg refresh.
  • #6732 Fix CAgg migration with custom timezone / date format settings.
  • #6752 Remove custom autovacuum setting from compressed chunks.
  • #6770 Fix plantime chunk exclusion for OSM chunk.
  • #6789 Fix deletes with subqueries and compression.
  • #6796 Fix a crash involving a view on a hypertable.
  • #6797 Fix foreign key constraint handling on compressed hypertables.
  • #6816 Fix handling of chunks with no constraints.
  • #6820 Fix a crash when the ts_hypertable_insert_blocker was called directly.
  • #6849 Use non-orderby compressed metadata in compressed DML.
  • #6867 Clean up compression settings when deleting compressed CAgg.
  • #6869 Fix compressed DML with constraints of form value OP column.
  • #6870 Fix bool expression pushdown for queries on compressed chunks.

Acknowledgments

  • @brasic for reporting a crash when ts_hypertable_insert_blocker was called directly.
  • @bvanelli for reporting an issue with the jobs retry count.
  • @djzurawski for reporting an error about dropping chunks.
  • @Dzuzepppe for reporting the issue that DELETEs using a subquery on compressed chunks was working incorrectly.
  • @hongquan for reporting a 'timestamp out of range' error during CAgg migrations.
  • @kevcenteno for reporting that the show_chunks API returned an incorrect output when 'created_before/created_after' was used with time-partitioned columns.
  • @mahipv for starting working on the job history PR.
  • @rovo89 for reporting that constify cagg_watermark was not working using the window function when querying a CAgg.

2.14.2 (2024-02-20)

20 Feb 09:38
Compare
Choose a tag to compare

This release contains bug fixes since the 2.14.1 release.
We recommend that you upgrade at the next available opportunity.

Bugfixes

  • #6655 Fix segfault in cagg_validate_query
  • #6660 Fix refresh on empty CAgg with variable bucket
  • #6670 Don't try to compress osm chunks

Thanks

  • @kav23alex for reporting a segfault in cagg_validate_query

2.14.1 (2024-02-14)

14 Feb 18:10
Compare
Choose a tag to compare

This release contains bug fixes since the 2.14.0 release.
We recommend that you upgrade at the next available opportunity.

Features

  • #6630 Add views for per chunk compression settings

Bugfixes

  • #6636 Fixes extension update of compressed hypertables with dropped columns
  • #6637 Reset sequence numbers on non-rollup compression
  • #6639 Disable default indexscan for compression
  • #6651 Fix DecompressChunk path generation with per chunk settings

Thanks

  • @anajavi for reporting an issue with extension update of compressed hypertables

2.14.0 (2024-02-08)

08 Feb 15:15
Compare
Choose a tag to compare

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

In addition, it includes these noteworthy features:

  • Ability to change compression settings on existing compressed hypertables at any time.
    New compression settings take effect on any new chunks that are compressed after the change.
  • Reduced locking requirements during chunk recompression
  • Limiting tuple decompression during DML operations to avoid decompressing a lot of tuples and causing storage issues (100k limit, configurable)
  • Helper functions for determining compression settings
  • Plan-time chunk exclusion for real-time Continuous Aggregate by constifying the cagg_watermark function call, leading to faster queries using real-time continuous aggregates

For this release only, you will need to restart the database before running ALTER EXTENSION

Multi-node support removal announcement
Following the deprecation announcement for Multi-node in TimescaleDB 2.13,
Multi-node is no longer supported starting with TimescaleDB 2.14.

TimescaleDB 2.13 is the last version that includes multi-node support. Learn more about it here.

If you want to migrate from multi-node TimescaleDB to single-node TimescaleDB, read the
migration documentation.

Deprecation notice: recompress_chunk procedure
TimescaleDB 2.14 is the last version that will include the recompress_chunk procedure. Its
functionality will be replaced by the compress_chunk function, which, starting on TimescaleDB 2.14,
works on both uncompressed and partially compressed chunks.
The compress_chunk function should be used going forward to fully compress all types of chunks or even recompress
old fully compressed chunks using new compression settings (through the newly introduced recompress optional parameter).

Features

  • #6325 Add plan-time chunk exclusion for real-time CAggs
  • #6360 Remove support for creating Continuous Aggregates with old format
  • #6386 Add functions for determining compression defaults
  • #6410 Remove multinode public API
  • #6440 Allow SQLValueFunction pushdown into compressed scan
  • #6463 Support approximate hypertable size
  • #6513 Make compression settings per chunk
  • #6529 Remove reindex_relation from recompression
  • #6531 Fix if_not_exists behavior for CAgg policy with NULL offsets
  • #6545 Remove restrictions for changing compression settings
  • #6566 Limit tuple decompression during DML operations
  • #6579 Change compress_chunk and decompress_chunk to idempotent version by default
  • #6608 Add LWLock for OSM usage in loader
  • #6609 Deprecate recompress_chunk
  • #6609 Add optional recompress argument to compress_chunk

Bugfixes

  • #6541 Inefficient join plans on compressed hypertables.
  • #6491 Enable now() plantime constification with BETWEEN
  • #6494 Fix create_hypertable referenced by fk succeeds
  • #6498 Suboptimal query plans when using time_bucket with query parameters
  • #6507 time_bucket_gapfill with timezones doesn't handle daylight savings
  • #6509 Make extension state available through function
  • #6512 Log extension state changes
  • #6522 Disallow triggers on CAggs
  • #6523 Reduce locking level on compressed chunk index during segmentwise recompression
  • #6531 Fix if_not_exists behavior for CAgg policy with NULL offsets
  • #6571 Fix pathtarget adjustment for MergeAppend paths in aggregation pushdown code
  • #6575 Fix compressed chunk not found during upserts
  • #6592 Fix recompression policy ignoring partially compressed chunks
  • #6610 Ensure qsort comparison function is transitive

Thanks

  • @coney21 and @GStechschulte for reporting the problem with inefficient join plans on compressed hypertables.
  • @HollowMan6 for reporting triggers not working on materialized views of
    CAggs
  • @jbx1 for reporting suboptimal query plans when using time_bucket with query parameters
  • @JerkoNikolic for reporting the issue with gapfill and DST
  • @pdipesh02 for working on removing the old Continuous Aggregate format
  • @raymalt and @martinhale for reporting very slow query plans on realtime CAggs queries

2.13.1 (2024-01-09)

09 Jan 10:24
Compare
Choose a tag to compare

This release contains bug fixes since the 2.13.0 release.
We recommend that you upgrade at the next available opportunity.

Bugfixes

  • #6365 Use numrows_pre_compression in approximate row count
  • #6377 Use processed group clauses in PG16
  • #6384 Change bgw_log_level to use PGC_SUSET
  • #6393 Disable vectorized sum for expressions.
  • #6405 Read CAgg watermark from materialized data
  • #6408 Fix groupby pathkeys for gapfill in PG16
  • #6428 Fix index matching during DML decompression
  • #6439 Fix compressed chunk permission handling on PG16
  • #6443 Fix lost concurrent CAgg updates
  • #6454 Fix unique expression indexes on compressed chunks
  • #6465 Fix use of freed path in decompression sort logic

Thanks

  • @MA-MacDonald for reporting an issue with gapfill in PG16
  • @aarondglover for reporting an issue with unique expression indexes on compressed chunks
  • @adriangb for reporting an issue with security barrier views on pg16

2.13.0 (2023-11-28)

28 Nov 14:21
Compare
Choose a tag to compare

This release contains performance improvements, an improved hypertable DDL API
and bug fixes since the 2.12.2 release. We recommend that you upgrade at the next
available opportunity.

In addition, it includes these noteworthy features:

  • Full PostgreSQL 16 support for all existing features
  • Vectorized aggregation execution for sum()
  • Track chunk creation time used in retention/compression policies

Deprecation notice: Multi-node support
TimescaleDB 2.13 is the last version that will include multi-node support. Multi-node
support in 2.13 is available for PostgreSQL 13, 14 and 15. Learn more about it
here.

If you want to migrate from multi-node TimescaleDB to single-node TimescaleDB read the
migration documentation.

PostgreSQL 13 deprecation announcement
We will continue supporting PostgreSQL 13 until April 2024. Sooner to that time, we will announce the specific version of TimescaleDB in which PostgreSQL 13 support will not be included going forward.

Starting from TimescaleDB 2.13.0

  • No Amazon Machine Images (AMI) are published. If you previously used AMI, please
    use another installation method
  • Continuous Aggregates are materialized only (non-realtime) by default

Features

  • #5575 Add chunk-wise sorted paths for compressed chunks
  • #5761 Simplify hypertable DDL API
  • #5890 Reduce WAL activity by freezing compressed tuples immediately
  • #6050 Vectorized aggregation execution for sum()
  • #6062 Add metadata for chunk creation time
  • #6077 Make Continous Aggregates materialized only (non-realtime) by default
  • #6177 Change show_chunks/drop_chunks using chunk creation time
  • #6178 Show batches/tuples decompressed during DML operations in EXPLAIN output
  • #6185 Keep track of catalog version
  • #6227 Use creation time in retention/compression policy
  • #6307 Add SQL function cagg_validate_query

Bugfixes

  • #6188 Add GUC for setting background worker log level
  • #6222 Allow enabling compression on hypertable with unique expression index
  • #6240 Check if worker registration succeeded
  • #6254 Fix exception detail passing in compression_policy_execute
  • #6264 Fix missing bms_del_member result assignment
  • #6275 Fix negative bitmapset member not allowed in compression
  • #6280 Potential data loss when compressing a table with a partial index that matches compression order.
  • #6289 Add support for startup chunk exclusion with aggs
  • #6290 Repair relacl on upgrade
  • #6297 Fix segfault when creating a cagg using a NULL width in time bucket function
  • #6305 Make timescaledb_functions.makeaclitem strict
  • #6332 Fix typmod and collation for segmentby columns
  • #6339 Fix tablespace with constraints
  • #6343 Enable segmentwise recompression in compression policy

Thanks

  • @fetchezar for reporting an issue with compression policy error messages
  • @jflambert for reporting the background worker log level issue
  • @torazem for reporting an issue with compression and large oids
  • @fetchezar for reporting an issue in the compression policy
  • @lyp-bobi for reporting an issue with tablespace with constraints
  • @pdipesh02 for contributing to the implementation of the metadata for chunk creation time,
    the generalized hypertable API, and show_chunks/drop_chunks using chunk creation time
  • @lkshminarayanan for all his work on PG16 support

2.12.2 (2023-10-20)

20 Oct 08:47
Compare
Choose a tag to compare

This release contains bug fixes since the 2.12.1 release.
We recommend that you upgrade at the next available opportunity.

Bugfixes

  • #6155 Align gapfill bucket generation with time_bucket
  • #6181 Ensure fixed_schedule field is populated
  • #6210 Fix EXPLAIN ANALYZE for compressed DML

2.12.1 (2023-10-12)

12 Oct 07:19
Compare
Choose a tag to compare

This release contains bug fixes since the 2.12.0 release.
We recommend that you upgrade at the next available opportunity.

Bugfixes

  • #6113 Fix planner distributed table count
  • #6117 Avoid decompressing batches using an empty slot
  • #6123 Fix concurrency errors in OSM API
  • #6142 do not throw an error when deprecation GUC cannot be read

Thanks

  • @symbx for reporting a crash when selecting from empty hypertables

2.12.0 (2023-09-26)

26 Sep 12:37
Compare
Choose a tag to compare

This release contains performance improvements for compressed hypertables
and continuous aggregates and bug fixes since the 2.11.2 release.
We recommend that you upgrade at the next available opportunity.

This release moves all internal functions from the _timescaleb_internal
schema into the _timescaledb_functions schema. This separates code from
internal data objects and improves security by allowing more restrictive
permissions for the code schema. If you are calling any of those internal
functions you should adjust your code as soon as possible. This version
also includes a compatibility layer that allows calling them in the old
location but that layer will be removed in 2.14.0.

PostgreSQL 12 support removal announcement
Following the deprecation announcement for PostgreSQL 12 in TimescaleDB 2.10,
PostgreSQL 12 is not supported starting with TimescaleDB 2.12.
Currently supported PostgreSQL major versions are 13, 14 and 15.
PostgreSQL 16 support will be added with a following TimescaleDB release.

Features

  • #5137 Insert into index during chunk compression
  • #5150 MERGE support on hypertables
  • #5515 Make hypertables support replica identity
  • #5586 Index scan support during UPDATE/DELETE on compressed hypertables
  • #5596 Support for partial aggregations at chunk level
  • #5599 Enable ChunkAppend for partially compressed chunks
  • #5655 Improve the number of parallel workers for decompression
  • #5758 Enable altering job schedule type through alter_job
  • #5805 Make logrepl markers for (partial) decompressions
  • #5809 Relax invalidation threshold table-level lock to row-level when refreshing a Continuous Aggregate
  • #5839 Support CAgg names in chunk_detailed_size
  • #5852 Make set_chunk_time_interval CAggs aware
  • #5868 Allow ALTER TABLE ... REPLICA IDENTITY (FULL|INDEX) on materialized hypertables (continuous aggregates)
  • #5875 Add job exit status and runtime to log
  • #5909 CREATE INDEX ONLY ON hypertable creates index on chunks

Bugfixes

  • #5860 Fix interval calculation for hierarchical CAggs
  • #5894 Check unique indexes when enabling compression
  • #5951 _timescaledb_internal.create_compressed_chunk doesn't account for existing uncompressed rows
  • #5988 Move functions to _timescaledb_functions schema
  • #5788 Chunk_create must add an existing table or fail
  • #5872 Fix duplicates on partially compressed chunk reads
  • #5918 Fix crash in COPY from program returning error
  • #5990 Place data in first/last function in correct mctx
  • #5991 Call eq_func correctly in time_bucket_gapfill
  • #6015 Correct row count in EXPLAIN ANALYZE INSERT .. ON CONFLICT output
  • #6035 Fix server crash on UPDATE of compressed chunk
  • #6044 Fix server crash when using duplicate segmentby column
  • #6045 Fix segfault in set_integer_now_func
  • #6053 Fix approximate_row_count for CAggs
  • #6081 Improve compressed DML datatype handling
  • #6084 Propagate parameter changes to decompress child nodes
  • #6102 Schedule compression policy more often

Thanks

  • @ajcanterbury for reporting a problem with lateral joins on compressed chunks
  • @alexanderlaw for reporting multiple server crashes
  • @lukaskirner for reporting a bug with monthly continuous aggregates
  • @mrksngl for reporting a bug with unusual user names
  • @willsbit for reporting a crash in time_bucket_gapfill

2.11.2 (2023-08-17)

17 Aug 06:46
Compare
Choose a tag to compare

This release contains bug fixes since the 2.11.1 release.
We recommend that you upgrade at the next available opportunity.

Features

  • #5923 Feature flags for TimescaleDB features

Bugfixes

  • #5680 Fix DISTINCT query with JOIN on multiple segmentby columns
  • #5774 Fixed two bugs in decompression sorted merge code
  • #5786 Ensure pg_config --cppflags are passed
  • #5906 Fix quoting owners in sql scripts.
  • #5912 Fix crash in 1-step integer policy creation

Thanks

  • @mrksngl for submitting a PR to fix extension upgrade scripts
  • @ericdevries for reporting an issue with DISTINCT queries using
    segmentby columns of compressed hypertable