Skip to content

Enable AIC compression by default - #10878

Merged
dbeck merged 1 commit into
mainfrom
dbeck/enable_aic
Oct 22, 2026
Merged

dbeck merged 1 commit into
mainfrom
dbeck/enable_aic

Conversation

@dbeck

@dbeck dbeck commented Oct 21, 2026

Copy link
Copy Markdown
Member

In the 2.31.0 release we introduced the AIC compressor. For the upcoming release (2.32.0) we now enable it by default.

The expected file changes are related to the size differences of the compressed data, and also the compressed binary data changes. Another source of the differences is when the plan changes from Index scan to Seqscan when the size difference crosses the planner threshold.

@github-actions

Copy link
Copy Markdown

@melihmutlu, @antekresic: please review this pull request.

Powered by pull-review

@dbeck
dbeck force-pushed the dbeck/enable_aic branch 3 times, most recently from b3b9499 to 29674de Compare October 21, 2026 17:44
@codecov

codecov Bot commented Oct 21, 2026

Copy link
Copy Markdown

Codecov Report

βœ… All modified and coverable lines are covered by tests.

πŸ“’ Thoughts on this report? Let us know!

@dbeck
dbeck force-pushed the dbeck/enable_aic branch 4 times, most recently from ca13e37 to af679d0 Compare October 21, 2026 22:37
In the 2.31.0 release we introduced the AIC compressor. For the
upcoming release (2.32.0) we now enable it by default.

The expected file changes are related to the size differences
of the compressed data, and also the compressed binary data
changes. Another source of the differences is when the plan
changes from Index scan to Seqscan when the size difference
crosses the planner threshold.
@svenklemm svenklemm added this to the v2.32.0 milestone Oct 22, 2026
@dbeck
dbeck merged commit ab5dfab into main Oct 22, 2026
67 of 69 checks passed
@dbeck
dbeck deleted the dbeck/enable_aic branch October 22, 2026 13:08
@github-actions github-actions Bot mentioned this pull request Nov 11, 2026
surister added a commit that referenced this pull request Nov 11, 2026
This release includes security fixes, performance improvements, and bug fixes since 2.31.0. As part of our ongoing proactive security reviews, this release includes a larger set of security fixes than usual. We recommend that you upgrade as soon as possible.

**Loader Changes**
For the loader changes take effect a PostgreSQL restart is required.

* [#10966](#10966) Check database ownership before stopping or restarting background workers on database commands
* [#10983](#10983) Run the background worker scheduler as the database owner instead of as superuser

**Features**
* [#10864](#10864) Improve continuous aggregate refresh performance by updating the watermark once per batch
* [#10878](#10878) Enable Adaptive Integer Compression (AIC) by default
* [#10927](#10927) Remove user switching when allocating ids from the internal catalog sequences
* [#10953](#10953) Allow database owners to start, stop, and restart background workers without superuser
* [#10960](#10960) Run the telemetry job as the database owner instead of the role that installed the extension

**Bugfixes**
* [#10075](#10075) Removing the bloom1_contains function and rejecting anonymous record arrays in bloom1_contains_any
* [#10296](#10296), [#10745](#10745) Fix continuous aggregate refresh skipping the last invalidated bucket for variable-sized buckets
* [#10854](#10854) Correctly skip rows with conversion errors during `COPY FROM ON_ERROR` ignore
* [#10855](#10855) Enforce `REJECT_LIMIT` during `COPY FROM` on PostgreSQL 18 and later
* [#10887](#10887) Fix "repalloc called with invalid pointer" when compressing batches of more than 992 rows for certain data patterns
* [#10893](#10893) Fix typo in the columnar README example
* [#10902](#10902) Fix concurrent `UPDATE`/`DELETE` on hypertables silently skipping rows under `READ COMMITTED`
* [#10919](#10919) Check schema `CREATE` privilege when creating a continuous aggregate
* [#10925](#10925) Create chunk constraints without switching to the catalog owner
* [#10961](#10961) Fix crash in `decompress_chunk` when the hypertable is dropped concurrently
* [#10961](#10961) Fix null dereference in in-memory recompression when the compression settings are missing
* [#10961](#10961) Fix stale chunk and hypertable state in `compress_chunk` when a concurrent decompress or compression change commits
* [#10962](#10962) Reset `search_path` after every `COMMIT` in the columnstore policy
* [#10964](#10964) Fix crash in `cagg_validate_query` when called with a `SELECT INTO` statement
* [#10964](#10964) Fix crash in `cagg_validate_query` when the user lacks `SELECT` permission on the hypertable
* [#10965](#10965) Verify the server certificate on telemetry SSL connections
* [#10967](#10967) Fix crash in `show_policies` when called more than once in the same query
* [#10968](#10968) Fix crash in `add_policies` and `alter_policies` when a `drop_created_before` retention policy exists on the hypertable or the continuous aggregate
* [#10970](#10970) Fix `ORDER BY` pushdown for realtime continuous aggregates with an `ORDER BY` in their definition
* [#10988](#10988) Report a missing policy config key as a user error instead of an internal error
* [#10988](#10988) Restrict changing the config check function of a job to the job owner
* [#10989](#10989) Match job procedures by OID in DDL hooks
* [#10991](#10991) Fix function overload in `approximate_row_count`
* [#10993](#10993) Require ownership of the chunk, not just of the hypertable, to do chunk operations on them

**GUCs**
* `compression_orderby_default_function`: Function to use for calculating default order_by setting for compression. Default: `timescaledb.compression_orderby_default_function`
* `compression_segmentby_default_function`: Function to use for calculating default segment_by setting for compression. Default: `timescaledb.compression_segmentby_default_function`

**Thanks**
* @JoongHyuk-Shin for fixing continuous aggregate refresh skipping the last invalidated bucket for variable-width buckets, [10419](#10419)
* @manishnithinreddy for reporting the concurrent `UPDATE`/`DELETE` regression and bisecting it to `2.28.1`, [10902](#10902)
* @martin-omacht for reporting missing and stale buckets in a continuous aggregate with a timezone, [#10296](#10296)
* @owhiterabbito for reporting the compression error and analyzing the selector buffer size, [#10887](#10887)
* @pei711 for fixing a typo in the README, [#10893](#10893)
* @salmanazmat666 for reporting the continuous aggregate refresh skipping the last bucket on a variable-width bucket boundary, [#10745](#10745)
@timescale-automation timescale-automation added the released-2.32.0 Released in 2.32.0 label Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released-2.32.0 Released in 2.32.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants