-
Notifications
You must be signed in to change notification settings - Fork 884
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This release contains performance improvements and bug fixes since the 2.15.0 release. Best practice is to upgrade at the next available opportunity. **Migrating from self-hosted TimescaleDB v2.14.x and earlier** After you run `ALTER EXTENSION`, you must run [this SQL script](https://github.com/timescale/timescaledb-extras/blob/master/utils/2.15.X-fix_hypertable_foreign_keys.sql). For more details, see the following pull request [#6797](#6797). If you are migrating from TimescaleDB v2.15.0, no changes are required. **Bugfixes** * #6540: Segmentation fault when you backfill data using COPY into a compressed chunk. * #6858: `BEFORE UPDATE` trigger not working correctly. * #6908: Fix `time_bucket_gapfill()` with timezone behaviour around daylight savings time (DST) switches. * #6911: Fix dropped chunk metadata removal in the update script. * #6940: Fix `pg_upgrade` failure by removing `regprocedure` from the catalog table. * #6957: Fix the `segfault` in UNION queries that contain ordering on compressed chunks. **Thanks** * @DiAifU, @kiddhombre and @intermittentnrg for reporting the issues with gapfill and daylight saving time. * @edgarzamora for reporting the issue with update triggers. * @hongquan for reporting the issue with the update script. * @iliastsa and @SystemParadox for reporting the issue with COPY into a compressed chunk.
- Loading branch information
1 parent
2525b81
commit 6a8b31f
Showing
13 changed files
with
134 additions
and
114 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
CREATE TABLE _timescaledb_catalog._tmp_continuous_aggs_bucket_function AS | ||
SELECT | ||
mat_hypertable_id, | ||
bucket_func::text AS bucket_func, | ||
bucket_width, | ||
bucket_origin, | ||
bucket_offset, | ||
bucket_timezone, | ||
bucket_fixed_width | ||
FROM | ||
_timescaledb_catalog.continuous_aggs_bucket_function | ||
ORDER BY | ||
mat_hypertable_id; | ||
|
||
ALTER EXTENSION timescaledb | ||
DROP TABLE _timescaledb_catalog.continuous_aggs_bucket_function; | ||
|
||
DROP TABLE _timescaledb_catalog.continuous_aggs_bucket_function; | ||
|
||
CREATE TABLE _timescaledb_catalog.continuous_aggs_bucket_function ( | ||
mat_hypertable_id integer NOT NULL, | ||
-- The bucket function | ||
bucket_func text NOT NULL, | ||
-- `bucket_width` argument of the function, e.g. "1 month" | ||
bucket_width text NOT NULL, | ||
-- optional `origin` argument of the function provided by the user | ||
bucket_origin text, | ||
-- optional `offset` argument of the function provided by the user | ||
bucket_offset text, | ||
-- optional `timezone` argument of the function provided by the user | ||
bucket_timezone text, | ||
-- fixed or variable sized bucket | ||
bucket_fixed_width bool NOT NULL, | ||
-- table constraints | ||
CONSTRAINT continuous_aggs_bucket_function_pkey PRIMARY KEY (mat_hypertable_id), | ||
CONSTRAINT continuous_aggs_bucket_function_mat_hypertable_id_fkey FOREIGN KEY (mat_hypertable_id) REFERENCES _timescaledb_catalog.hypertable (id) ON DELETE CASCADE, | ||
CONSTRAINT continuous_aggs_bucket_function_func_check CHECK (pg_catalog.to_regprocedure(bucket_func) IS DISTINCT FROM 0) | ||
); | ||
|
||
INSERT INTO _timescaledb_catalog.continuous_aggs_bucket_function | ||
SELECT * FROM _timescaledb_catalog._tmp_continuous_aggs_bucket_function; | ||
|
||
DROP TABLE _timescaledb_catalog._tmp_continuous_aggs_bucket_function; | ||
|
||
SELECT pg_catalog.pg_extension_config_dump('_timescaledb_catalog.continuous_aggs_bucket_function', ''); | ||
|
||
GRANT SELECT ON TABLE _timescaledb_catalog.continuous_aggs_bucket_function TO PUBLIC; | ||
|
||
ANALYZE _timescaledb_catalog.continuous_aggs_bucket_function; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
CREATE TABLE _timescaledb_catalog._tmp_continuous_aggs_bucket_function AS | ||
SELECT | ||
mat_hypertable_id, | ||
pg_catalog.to_regprocedure(bucket_func) AS bucket_func, | ||
bucket_width, | ||
bucket_origin, | ||
bucket_offset, | ||
bucket_timezone, | ||
bucket_fixed_width | ||
FROM | ||
_timescaledb_catalog.continuous_aggs_bucket_function | ||
ORDER BY | ||
mat_hypertable_id; | ||
|
||
ALTER EXTENSION timescaledb | ||
DROP TABLE _timescaledb_catalog.continuous_aggs_bucket_function; | ||
|
||
DROP TABLE _timescaledb_catalog.continuous_aggs_bucket_function; | ||
|
||
CREATE TABLE _timescaledb_catalog.continuous_aggs_bucket_function ( | ||
mat_hypertable_id integer NOT NULL, | ||
-- The bucket function | ||
bucket_func regprocedure NOT NULL, | ||
-- `bucket_width` argument of the function, e.g. "1 month" | ||
bucket_width text NOT NULL, | ||
-- optional `origin` argument of the function provided by the user | ||
bucket_origin text, | ||
-- optional `offset` argument of the function provided by the user | ||
bucket_offset text, | ||
-- optional `timezone` argument of the function provided by the user | ||
bucket_timezone text, | ||
-- fixed or variable sized bucket | ||
bucket_fixed_width bool NOT NULL, | ||
-- table constraints | ||
CONSTRAINT continuous_aggs_bucket_function_pkey PRIMARY KEY (mat_hypertable_id), | ||
CONSTRAINT continuous_aggs_bucket_function_mat_hypertable_id_fkey FOREIGN KEY (mat_hypertable_id) REFERENCES _timescaledb_catalog.hypertable (id) ON DELETE CASCADE | ||
); | ||
|
||
INSERT INTO _timescaledb_catalog.continuous_aggs_bucket_function | ||
SELECT * FROM _timescaledb_catalog._tmp_continuous_aggs_bucket_function; | ||
|
||
DROP TABLE _timescaledb_catalog._tmp_continuous_aggs_bucket_function; | ||
|
||
SELECT pg_catalog.pg_extension_config_dump('_timescaledb_catalog.continuous_aggs_bucket_function', ''); | ||
|
||
GRANT SELECT ON TABLE _timescaledb_catalog.continuous_aggs_bucket_function TO PUBLIC; | ||
|
||
ANALYZE _timescaledb_catalog.continuous_aggs_bucket_function; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +0,0 @@ | ||
CREATE TABLE _timescaledb_catalog._tmp_continuous_aggs_bucket_function AS | ||
SELECT | ||
mat_hypertable_id, | ||
bucket_func::text AS bucket_func, | ||
bucket_width, | ||
bucket_origin, | ||
bucket_offset, | ||
bucket_timezone, | ||
bucket_fixed_width | ||
FROM | ||
_timescaledb_catalog.continuous_aggs_bucket_function | ||
ORDER BY | ||
mat_hypertable_id; | ||
|
||
ALTER EXTENSION timescaledb | ||
DROP TABLE _timescaledb_catalog.continuous_aggs_bucket_function; | ||
|
||
DROP TABLE _timescaledb_catalog.continuous_aggs_bucket_function; | ||
|
||
CREATE TABLE _timescaledb_catalog.continuous_aggs_bucket_function ( | ||
mat_hypertable_id integer NOT NULL, | ||
-- The bucket function | ||
bucket_func text NOT NULL, | ||
-- `bucket_width` argument of the function, e.g. "1 month" | ||
bucket_width text NOT NULL, | ||
-- optional `origin` argument of the function provided by the user | ||
bucket_origin text, | ||
-- optional `offset` argument of the function provided by the user | ||
bucket_offset text, | ||
-- optional `timezone` argument of the function provided by the user | ||
bucket_timezone text, | ||
-- fixed or variable sized bucket | ||
bucket_fixed_width bool NOT NULL, | ||
-- table constraints | ||
CONSTRAINT continuous_aggs_bucket_function_pkey PRIMARY KEY (mat_hypertable_id), | ||
CONSTRAINT continuous_aggs_bucket_function_mat_hypertable_id_fkey FOREIGN KEY (mat_hypertable_id) REFERENCES _timescaledb_catalog.hypertable (id) ON DELETE CASCADE, | ||
CONSTRAINT continuous_aggs_bucket_function_func_check CHECK (pg_catalog.to_regprocedure(bucket_func) IS DISTINCT FROM 0) | ||
); | ||
|
||
INSERT INTO _timescaledb_catalog.continuous_aggs_bucket_function | ||
SELECT * FROM _timescaledb_catalog._tmp_continuous_aggs_bucket_function; | ||
|
||
DROP TABLE _timescaledb_catalog._tmp_continuous_aggs_bucket_function; | ||
|
||
SELECT pg_catalog.pg_extension_config_dump('_timescaledb_catalog.continuous_aggs_bucket_function', ''); | ||
|
||
GRANT SELECT ON TABLE _timescaledb_catalog.continuous_aggs_bucket_function TO PUBLIC; | ||
|
||
ANALYZE _timescaledb_catalog.continuous_aggs_bucket_function; | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +0,0 @@ | ||
CREATE TABLE _timescaledb_catalog._tmp_continuous_aggs_bucket_function AS | ||
SELECT | ||
mat_hypertable_id, | ||
pg_catalog.to_regprocedure(bucket_func) AS bucket_func, | ||
bucket_width, | ||
bucket_origin, | ||
bucket_offset, | ||
bucket_timezone, | ||
bucket_fixed_width | ||
FROM | ||
_timescaledb_catalog.continuous_aggs_bucket_function | ||
ORDER BY | ||
mat_hypertable_id; | ||
|
||
ALTER EXTENSION timescaledb | ||
DROP TABLE _timescaledb_catalog.continuous_aggs_bucket_function; | ||
|
||
DROP TABLE _timescaledb_catalog.continuous_aggs_bucket_function; | ||
|
||
CREATE TABLE _timescaledb_catalog.continuous_aggs_bucket_function ( | ||
mat_hypertable_id integer NOT NULL, | ||
-- The bucket function | ||
bucket_func regprocedure NOT NULL, | ||
-- `bucket_width` argument of the function, e.g. "1 month" | ||
bucket_width text NOT NULL, | ||
-- optional `origin` argument of the function provided by the user | ||
bucket_origin text, | ||
-- optional `offset` argument of the function provided by the user | ||
bucket_offset text, | ||
-- optional `timezone` argument of the function provided by the user | ||
bucket_timezone text, | ||
-- fixed or variable sized bucket | ||
bucket_fixed_width bool NOT NULL, | ||
-- table constraints | ||
CONSTRAINT continuous_aggs_bucket_function_pkey PRIMARY KEY (mat_hypertable_id), | ||
CONSTRAINT continuous_aggs_bucket_function_mat_hypertable_id_fkey FOREIGN KEY (mat_hypertable_id) REFERENCES _timescaledb_catalog.hypertable (id) ON DELETE CASCADE | ||
); | ||
|
||
INSERT INTO _timescaledb_catalog.continuous_aggs_bucket_function | ||
SELECT * FROM _timescaledb_catalog._tmp_continuous_aggs_bucket_function; | ||
|
||
DROP TABLE _timescaledb_catalog._tmp_continuous_aggs_bucket_function; | ||
|
||
SELECT pg_catalog.pg_extension_config_dump('_timescaledb_catalog.continuous_aggs_bucket_function', ''); | ||
|
||
GRANT SELECT ON TABLE _timescaledb_catalog.continuous_aggs_bucket_function TO PUBLIC; | ||
|
||
ANALYZE _timescaledb_catalog.continuous_aggs_bucket_function; | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
version = 2.15.0 | ||
update_from_version = 2.14.2 | ||
downgrade_to_version = 2.14.2 | ||
version = 2.15.1 | ||
update_from_version = 2.15.0 | ||
downgrade_to_version = 2.15.0 |