Skip to content

Commit

Permalink
Release 2.5.0
Browse files Browse the repository at this point in the history
This release adds major new features since the 2.4.2 release.
We deem it moderate priority for upgrading

This release adds several and long-awaited/wanted features:

* Continuous Aggregates for Distributed Hypertables
* Support for PostgreSQL 14
* Experimental: Support for timezones in `time_bucket_ng()`, including
the `origin` argument

This release also includes several bug fixes.

**Major Features**
* timescale#3435 Add continuous aggregates for distributed hypertables
* timescale#3034 Add support for PostgreSQL 14
* timescale#3505 Add support for timezones in `time_bucket_ng()`

**Minor Features**
* timescale#3598 Improve evaluation of stable functions such as now() on access
node

**Bugfixes**
* timescale#3580 Fix memory context bug executing TRUNCATE
* timescale#3654 Fix index attnum mapping in reorder_chunk
* timescale#3661 Fix SkipScan path generation with constant DISTINCT column
* timescale#3708 Fix crash in get_aggsplit
* timescale#3709 Fix ordered append pathkey check
* timescale#3728 Fix SkipScan with varchar column

**Thanks**
* @binakot and @sebvett for reporting an issue with DISTINCT queries
* @hardikm10, @DavidPavlicek and @pafiti for reporting bugs on TRUNCATE
* @mjf for reporting an issue with ordered append and JOINs
* @phemmer for reporting the issues on multinode with aggregate queries
and evaluation of now()

Disable-check: commit-count
  • Loading branch information
fabriziomello committed Oct 27, 2021
1 parent f8bf3b9 commit 76811a9
Show file tree
Hide file tree
Showing 7 changed files with 47 additions and 29 deletions.
20 changes: 18 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,25 @@
`psql` with the `-X` flag to prevent any `.psqlrc` commands from
accidentally triggering the load of a previous DB version.**

## Unreleased
## 2.5.0 (2021-10-28)

**Features**
This release adds major new features since the 2.4.2 release.
We deem it moderate priority for upgrading

This release adds several and long-awaited/wanted features:

* Continuous Aggregates for Distributed Hypertables
* Support for PostgreSQL 14
* Experimental: Support for timezones in `time_bucket_ng()`, including the `origin` argument

This release also includes several bug fixes.

**Major Features**
* #3435 Add continuous aggregates for distributed hypertables
* #3034 Add support for PostgreSQL 14
* #3505 Add support for timezones in `time_bucket_ng()`

**Minor Features**
* #3598 Improve evaluation of stable functions such as now() on access node

**Bugfixes**
Expand Down
6 changes: 4 additions & 2 deletions sql/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,13 @@ set(MOD_FILES
updates/2.3.0--2.3.1.sql
updates/2.3.1--2.4.0.sql
updates/2.4.0--2.4.1.sql
updates/2.4.1--2.4.2.sql)
updates/2.4.1--2.4.2.sql
updates/2.4.2--2.5.0.sql)

# Files for downgrade scripts. This should only include files for downgrade to
# previous version since we do not support skipping versions when downgrading
set(REV_FILES)
set(REV_FILES
updates/2.5.0--2.4.2.sql)

set(MODULE_PATHNAME "$libdir/timescaledb-${PROJECT_VERSION_MOD}")
set(LOADER_PATHNAME "$libdir/timescaledb")
Expand Down
5 changes: 5 additions & 0 deletions sql/updates/2.4.2--2.5.0.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
DROP FUNCTION IF EXISTS _timescaledb_internal.time_col_name_for_chunk(name,name);
DROP FUNCTION IF EXISTS _timescaledb_internal.time_col_type_for_chunk(name,name);

CREATE OR REPLACE FUNCTION _timescaledb_internal.subtract_integer_from_now( hypertable_relid REGCLASS, lag INT8 )
RETURNS INT8 AS '@MODULE_PATHNAME@', 'ts_subtract_integer_from_now' LANGUAGE C STABLE STRICT;
18 changes: 18 additions & 0 deletions sql/updates/2.5.0--2.4.2.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
DROP FUNCTION IF EXISTS timescaledb_experimental.time_bucket_ng(bucket_width INTERVAL, ts TIMESTAMPTZ, timezone TEXT);
DROP FUNCTION IF EXISTS timescaledb_experimental.time_bucket_ng(bucket_width INTERVAL, ts TIMESTAMPTZ, origin TIMESTAMPTZ, timezone TEXT);

DROP FUNCTION IF EXISTS _timescaledb_internal.subtract_integer_from_now;

--changes for compression policy ---
DROP PROCEDURE IF EXISTS _timescaledb_internal.policy_compression;
DROP PROCEDURE IF EXISTS _timescaledb_internal.policy_compression_interval;
DROP PROCEDURE IF EXISTS _timescaledb_internal.policy_compression_integer;

--changes for continuous Aggregates over distributed hypertables ---
DROP FUNCTION IF EXISTS _timescaledb_internal.drop_dist_ht_invalidation_trigger;
DROP FUNCTION IF EXISTS _timescaledb_internal.hypertable_invalidation_log_delete;
DROP FUNCTION IF EXISTS _timescaledb_internal.invalidation_cagg_log_add_entry;
DROP FUNCTION IF EXISTS _timescaledb_internal.invalidation_hyper_log_add_entry;
DROP FUNCTION IF EXISTS _timescaledb_internal.invalidation_process_cagg_log;
DROP FUNCTION IF EXISTS _timescaledb_internal.invalidation_process_hypertable_log;
DROP FUNCTION IF EXISTS _timescaledb_internal.materialization_invalidation_log_delete;
5 changes: 0 additions & 5 deletions sql/updates/latest-dev.sql
Original file line number Diff line number Diff line change
@@ -1,5 +0,0 @@
DROP FUNCTION IF EXISTS _timescaledb_internal.time_col_name_for_chunk(name,name);
DROP FUNCTION IF EXISTS _timescaledb_internal.time_col_type_for_chunk(name,name);

CREATE OR REPLACE FUNCTION _timescaledb_internal.subtract_integer_from_now( hypertable_relid REGCLASS, lag INT8 )
RETURNS INT8 AS '@MODULE_PATHNAME@', 'ts_subtract_integer_from_now' LANGUAGE C STABLE STRICT;
18 changes: 0 additions & 18 deletions sql/updates/reverse-dev.sql
Original file line number Diff line number Diff line change
@@ -1,18 +0,0 @@
DROP FUNCTION IF EXISTS timescaledb_experimental.time_bucket_ng(bucket_width INTERVAL, ts TIMESTAMPTZ, timezone TEXT);
DROP FUNCTION IF EXISTS timescaledb_experimental.time_bucket_ng(bucket_width INTERVAL, ts TIMESTAMPTZ, origin TIMESTAMPTZ, timezone TEXT);

DROP FUNCTION IF EXISTS _timescaledb_internal.subtract_integer_from_now;

--changes for compression policy ---
DROP PROCEDURE IF EXISTS _timescaledb_internal.policy_compression;
DROP PROCEDURE IF EXISTS _timescaledb_internal.policy_compression_interval;
DROP PROCEDURE IF EXISTS _timescaledb_internal.policy_compression_integer;

--changes for continuous Aggregates over distributed hypertables ---
DROP FUNCTION IF EXISTS _timescaledb_internal.drop_dist_ht_invalidation_trigger;
DROP FUNCTION IF EXISTS _timescaledb_internal.hypertable_invalidation_log_delete;
DROP FUNCTION IF EXISTS _timescaledb_internal.invalidation_cagg_log_add_entry;
DROP FUNCTION IF EXISTS _timescaledb_internal.invalidation_hyper_log_add_entry;
DROP FUNCTION IF EXISTS _timescaledb_internal.invalidation_process_cagg_log;
DROP FUNCTION IF EXISTS _timescaledb_internal.invalidation_process_hypertable_log;
DROP FUNCTION IF EXISTS _timescaledb_internal.materialization_invalidation_log_delete;
4 changes: 2 additions & 2 deletions version.config
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
version = 2.5.0-dev
update_from_version = 2.4.2
version = 2.6.0-dev
update_from_version = 2.5.0
downgrade_to_version = 2.4.2

0 comments on commit 76811a9

Please sign in to comment.