Skip to content

Commit

Permalink
Release 2.12.0
Browse files Browse the repository at this point in the history
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
  • Loading branch information
svenklemm committed Sep 25, 2023
1 parent 8a3a23a commit ec99b00
Show file tree
Hide file tree
Showing 42 changed files with 835 additions and 824 deletions.
1 change: 0 additions & 1 deletion .unreleased/5655_decompression_workers.txt

This file was deleted.

1 change: 0 additions & 1 deletion .unreleased/PR_5150

This file was deleted.

1 change: 0 additions & 1 deletion .unreleased/PR_5586

This file was deleted.

1 change: 0 additions & 1 deletion .unreleased/PR_5805

This file was deleted.

1 change: 0 additions & 1 deletion .unreleased/PR_5839

This file was deleted.

1 change: 0 additions & 1 deletion .unreleased/PR_5852

This file was deleted.

1 change: 0 additions & 1 deletion .unreleased/PR_5868

This file was deleted.

2 changes: 0 additions & 2 deletions .unreleased/PR_5930

This file was deleted.

1 change: 0 additions & 1 deletion .unreleased/PR_6036

This file was deleted.

1 change: 0 additions & 1 deletion .unreleased/PR_6067

This file was deleted.

2 changes: 0 additions & 2 deletions .unreleased/PR_6081

This file was deleted.

1 change: 0 additions & 1 deletion .unreleased/PR_6106

This file was deleted.

1 change: 0 additions & 1 deletion .unreleased/bugfix_5562

This file was deleted.

5 changes: 0 additions & 5 deletions .unreleased/bugfix_5734

This file was deleted.

1 change: 0 additions & 1 deletion .unreleased/bugfix_5872

This file was deleted.

2 changes: 0 additions & 2 deletions .unreleased/bugfix_5892

This file was deleted.

1 change: 0 additions & 1 deletion .unreleased/bugfix_5909

This file was deleted.

3 changes: 0 additions & 3 deletions .unreleased/bugfix_5918

This file was deleted.

4 changes: 0 additions & 4 deletions .unreleased/bugfix_5951

This file was deleted.

1 change: 0 additions & 1 deletion .unreleased/bugfix_5990

This file was deleted.

2 changes: 0 additions & 2 deletions .unreleased/bugfix_5991

This file was deleted.

1 change: 0 additions & 1 deletion .unreleased/bugfix_6015

This file was deleted.

3 changes: 0 additions & 3 deletions .unreleased/bugfix_6024

This file was deleted.

3 changes: 0 additions & 3 deletions .unreleased/bugfix_6037

This file was deleted.

1 change: 0 additions & 1 deletion .unreleased/bugfix_6044

This file was deleted.

1 change: 0 additions & 1 deletion .unreleased/bugfix_6053

This file was deleted.

2 changes: 0 additions & 2 deletions .unreleased/bugfix_6084

This file was deleted.

1 change: 0 additions & 1 deletion .unreleased/bugfix_chunk_create

This file was deleted.

1 change: 0 additions & 1 deletion .unreleased/feature_5137

This file was deleted.

1 change: 0 additions & 1 deletion .unreleased/feature_5515

This file was deleted.

1 change: 0 additions & 1 deletion .unreleased/feature_5596

This file was deleted.

1 change: 0 additions & 1 deletion .unreleased/feature_5599

This file was deleted.

1 change: 0 additions & 1 deletion .unreleased/feature_5758

This file was deleted.

1 change: 0 additions & 1 deletion .unreleased/feature_5809

This file was deleted.

1 change: 0 additions & 1 deletion .unreleased/feature_5875

This file was deleted.

64 changes: 63 additions & 1 deletion CHANGELOG.md
Expand Up @@ -4,6 +4,69 @@
`psql` with the `-X` flag to prevent any `.psqlrc` commands from
accidentally triggering the load of a previous DB version.**

## 2.12.0 (2023-09-27)

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-09)

This release contains bug fixes since the 2.11.1 release.
Expand Down Expand Up @@ -72,7 +135,6 @@ This release includes these noteworthy features:
* #5584 Reduce decompression during constraint checking
* #5530 Optimize compressed chunk resorting
* #5639 Support sending telemetry event reports
* #5150 MERGE support on hypertables

**Bugfixes**
* #5396 Fix SEGMENTBY columns predicates to be pushed down
Expand Down
8 changes: 5 additions & 3 deletions sql/CMakeLists.txt
Expand Up @@ -37,11 +37,12 @@ set(MOD_FILES
updates/2.10.2--2.10.3.sql
updates/2.10.3--2.11.0.sql
updates/2.11.0--2.11.1.sql
updates/2.11.1--2.11.2.sql)
updates/2.11.1--2.11.2.sql
updates/2.11.2--2.12.0.sql)

# The downgrade file to generate a downgrade script for the current version, as
# specified in version.config
set(CURRENT_REV_FILE reverse-dev.sql)
set(CURRENT_REV_FILE 2.12.0--2.11.2.sql)
# Files for generating old downgrade scripts. This should only include files for
# downgrade from one version to its previous version since we do not support
# skipping versions when downgrading.
Expand Down Expand Up @@ -70,7 +71,8 @@ set(OLD_REV_FILES
2.10.3--2.10.2.sql
2.11.0--2.10.3.sql
2.11.1--2.11.0.sql
2.11.2--2.11.1.sql)
2.11.2--2.11.1.sql
2.12.0--2.11.2.sql)

set(MODULE_PATHNAME "$libdir/timescaledb-${PROJECT_VERSION_MOD}")
set(LOADER_PATHNAME "$libdir/timescaledb")
Expand Down

0 comments on commit ec99b00

Please sign in to comment.