mirror of
https://github.com/timescale/timescaledb.git
synced 2025-05-15 18:13:18 +08:00
Post release 2.15.1
This commit is contained in:
parent
8b2d0d2cd1
commit
438736f6bd
@ -75,7 +75,8 @@ set(OLD_REV_FILES
|
||||
2.14.0--2.13.1.sql
|
||||
2.14.1--2.14.0.sql
|
||||
2.14.2--2.14.1.sql
|
||||
2.15.0--2.14.2.sql)
|
||||
2.15.0--2.14.2.sql
|
||||
2.15.1--2.15.0.sql)
|
||||
|
||||
set(MODULE_PATHNAME "$libdir/timescaledb-${PROJECT_VERSION_MOD}")
|
||||
set(LOADER_PATHNAME "$libdir/timescaledb")
|
||||
|
48
sql/updates/2.15.1--2.15.0.sql
Normal file
48
sql/updates/2.15.1--2.15.0.sql
Normal file
@ -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;
|
@ -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;
|
@ -1,3 +1,3 @@
|
||||
version = 2.16.0-dev
|
||||
update_from_version = 2.15.1
|
||||
downgrade_to_version = 2.15.0
|
||||
downgrade_to_version = 2.15.1
|
||||
|
Loading…
x
Reference in New Issue
Block a user