Skip to content

Commit

Permalink
Post-release fixes for 2.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mkindahl committed Jul 12, 2022
1 parent daa4622 commit 5670378
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 11 deletions.
2 changes: 1 addition & 1 deletion scripts/test_updates_pg12.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ run_tests "$@" -v7 \
2.0.0-rc2-pg12 2.0.0-rc3-pg12 2.0.0-rc4-pg12 2.0.0-pg12 2.0.1-pg12 2.0.2-pg12 2.1.0-pg12 \
2.1.1-pg12 2.2.0-pg12 2.2.1-pg12 2.3.0-pg12 2.3.1-pg12 2.4.0-pg12 2.4.1-pg12 2.4.2-pg12
run_tests "$@" -v8 \
2.5.0-pg12 2.5.1-pg12 2.5.2-pg12 2.6.0-pg12 2.6.1-pg12 2.7.0-pg12
2.5.0-pg12 2.5.1-pg12 2.5.2-pg12 2.6.0-pg12 2.6.1-pg12 2.7.0-pg12 2.7.1-pg12
2 changes: 1 addition & 1 deletion scripts/test_updates_pg13.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ run_tests "$@" -v7 \
2.1.0-pg13 2.1.1-pg13 2.2.0-pg13 2.2.1-pg13 2.3.0-pg13 2.3.1-pg13 \
2.4.0-pg13 2.4.1-pg13 2.4.2-pg13
run_tests "$@" -v8 \
2.5.0-pg13 2.5.1-pg13 2.5.2-pg13 2.6.0-pg13 2.6.1-pg13 2.7.0-pg13
2.5.0-pg13 2.5.1-pg13 2.5.2-pg13 2.6.0-pg13 2.6.1-pg13 2.7.0-pg13 2.7.1-pg13

2 changes: 1 addition & 1 deletion scripts/test_updates_pg14.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ source ${SCRIPT_DIR}/test_functions.inc
run_tests "$@" -v7 \
2.5.0-pg14 2.5.1-pg14
run_tests "$@" -v8 \
2.5.0-pg14 2.5.1-pg14 2.5.2-pg14 2.6.0-pg14 2.6.1-pg14 2.7.0-pg14
2.5.0-pg14 2.5.1-pg14 2.5.2-pg14 2.6.0-pg14 2.6.1-pg14 2.7.0-pg14 2.7.1-pg14
6 changes: 4 additions & 2 deletions sql/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ set(MOD_FILES
updates/2.5.1--2.5.2.sql
updates/2.5.2--2.6.0.sql
updates/2.6.0--2.6.1.sql
updates/2.6.1--2.7.0.sql)
updates/2.6.1--2.7.0.sql
updates/2.7.0--2.7.1.sql)

# The downgrade file to generate a downgrade script for the current version, as
# specified in version.config
Expand All @@ -53,7 +54,8 @@ set(OLD_REV_FILES
2.5.2--2.5.1.sql
2.6.0--2.5.2.sql
2.6.1--2.6.0.sql
2.7.0--2.6.1.sql)
2.7.0--2.6.1.sql
2.7.1--2.7.0.sql)

set(MODULE_PATHNAME "$libdir/timescaledb-${PROJECT_VERSION_MOD}")
set(LOADER_PATHNAME "$libdir/timescaledb")
Expand Down
Empty file added sql/updates/2.7.0--2.7.1.sql
Empty file.
7 changes: 7 additions & 0 deletions sql/updates/2.7.1--2.7.0.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
DROP FUNCTION IF EXISTS @extschema@.add_retention_policy(REGCLASS, "any", BOOL, INTERVAL);
DROP FUNCTION IF EXISTS @extschema@.add_compression_policy(REGCLASS, "any", BOOL, INTERVAL);
DROP FUNCTION IF EXISTS @extschema@.detach_data_node;

DROP FUNCTION _timescaledb_internal.attach_osm_table_chunk( hypertable REGCLASS, chunk REGCLASS);
DROP FUNCTION _timescaledb_internal.alter_job_set_hypertable_id( job_id INTEGER, hypertable REGCLASS );
DROP FUNCTION _timescaledb_internal.unfreeze_chunk( chunk REGCLASS);
5 changes: 1 addition & 4 deletions sql/updates/reverse-dev.sql
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ RETURNS INTEGER AS '@MODULE_PATHNAME@', 'ts_policy_retention_add' LANGUAGE C VOL
DROP FUNCTION IF EXISTS @extschema@.add_compression_policy(REGCLASS, "any", BOOL, INTERVAL);
CREATE FUNCTION @extschema@.add_compression_policy(hypertable REGCLASS, compress_after "any", if_not_exists BOOL = false)
RETURNS INTEGER AS '@MODULE_PATHNAME@', 'ts_policy_compression_add' LANGUAGE C VOLATILE STRICT;

DROP FUNCTION IF EXISTS @extschema@.detach_data_node;
CREATE FUNCTION @extschema@.detach_data_node(
node_name NAME,
Expand All @@ -14,7 +15,3 @@ CREATE FUNCTION @extschema@.detach_data_node(
repartition BOOLEAN = TRUE
) RETURNS INTEGER
AS '@MODULE_PATHNAME@', 'ts_data_node_detach' LANGUAGE C VOLATILE;

DROP FUNCTION _timescaledb_internal.attach_osm_table_chunk( hypertable REGCLASS, chunk REGCLASS);
DROP FUNCTION _timescaledb_internal.alter_job_set_hypertable_id( job_id INTEGER, hypertable REGCLASS );
DROP FUNCTION _timescaledb_internal.unfreeze_chunk( chunk REGCLASS);
4 changes: 2 additions & 2 deletions version.config
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
version = 2.8.0-dev
update_from_version = 2.7.0
downgrade_to_version = 2.7.0
update_from_version = 2.7.1
downgrade_to_version = 2.7.1

0 comments on commit 5670378

Please sign in to comment.