File tree Expand file tree Collapse file tree 12 files changed +52
-42
lines changed Expand file tree Collapse file tree 12 files changed +52
-42
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 4
4
` psql ` with the ` -X ` flag to prevent any ` .psqlrc ` commands from
5
5
accidentally triggering the load of a previous DB version.**
6
6
7
+ ## 2.20.3 (2025-06-11)
8
+
9
+ This release contains bug fixes since the 2.20.2 release. We recommend that you upgrade at the next available opportunity.
10
+
11
+ ** Bugfixes**
12
+ * [ #8107 ] ( https://github.com/timescale/timescaledb/pull/8107 ) Adjust SkipScan cost for quals needing full scan of indexed data.
13
+ * [ #8211 ] ( https://github.com/timescale/timescaledb/pull/8211 ) Fixed dump and restore when chunk skipping is enabled.
14
+ * [ #8216 ] ( https://github.com/timescale/timescaledb/pull/8216 ) Fix for dropped quals bug in SkipScan.
15
+ * [ #8230 ] ( https://github.com/timescale/timescaledb/pull/8230 ) Fix for inserting into compressed data when vectorised check is not available.
16
+ * [ #8236 ] ( https://github.com/timescale/timescaledb/pull/8236 ) Fixed the snapshot handling in background workers.
17
+
18
+ ** Thanks**
19
+ * @ikaakkola for reporting that SkipScan is slow when non-index quals do not match any tuples.
20
+
7
21
## 2.20.2 (2025-06-02)
8
22
9
23
This release contains bug fixes since the 2.20.1 release. We recommend that you upgrade at the next available opportunity.
Original file line number Diff line number Diff line change @@ -45,11 +45,12 @@ set(MOD_FILES
45
45
updates/2.19.2--2.19.3.sql
46
46
updates/2.19.3--2.20.0.sql
47
47
updates/2.20.0--2.20.1.sql
48
- updates/2.20.1--2.20.2.sql )
48
+ updates/2.20.1--2.20.2.sql
49
+ updates/2.20.2--2.20.3.sql )
49
50
50
51
# The downgrade file to generate a downgrade script for the current version, as
51
52
# specified in version.config
52
- set (CURRENT_REV_FILE 2.20.2 --2.20.1 .sql )
53
+ set (CURRENT_REV_FILE 2.20.3 --2.20.2 .sql )
53
54
# Files for generating old downgrade scripts. This should only include files for
54
55
# downgrade from one version to its previous version since we do not support
55
56
# skipping versions when downgrading.
@@ -90,7 +91,8 @@ set(OLD_REV_FILES
90
91
2.19.3--2.19.2.sql
91
92
2.20.0--2.19.3.sql
92
93
2.20.1--2.20.0.sql
93
- 2.20.2--2.20.1.sql )
94
+ 2.20.2--2.20.1.sql
95
+ 2.20.3--2.20.2.sql )
94
96
95
97
set (MODULE_PATHNAME "$libdir/timescaledb-${PROJECT_VERSION_MOD} " )
96
98
set (LOADER_PATHNAME "$libdir/timescaledb" )
Original file line number Diff line number Diff line change
1
+ -- Make chunk_id use NULL to mark special entries instead of 0
2
+ -- (Invalid chunk) since that doesn't work with the FK constraint on
3
+ -- chunk_id.
4
+ ALTER TABLE _timescaledb_catalog .chunk_column_stats ALTER COLUMN chunk_id DROP NOT NULL ;
5
+ UPDATE _timescaledb_catalog .chunk_column_stats SET chunk_id = NULL WHERE chunk_id = 0 ;
Original file line number Diff line number Diff line change
1
+ -- Add back the chunk_column_stats NOT NULL constraint. But first
2
+ -- delete all entries with with NULL since they will no longer be
3
+ -- allowed. Note that reverting chunk_id back to 0 because it will
4
+ -- violate the FK constraint. Even if we would revert, the downgrade
5
+ -- tests for "restore" would fail due to violating entries. Removing
6
+ -- the entries effectively means that collecting column stats for
7
+ -- those columns will be disabled. It can be enabled again after
8
+ -- downgrade. We emit a warning if anything was disabled.
9
+ DO $$
10
+ DECLARE
11
+ num_null_chunk_ids int ;
12
+ BEGIN
13
+
14
+ SELECT count (* ) INTO num_null_chunk_ids
15
+ FROM _timescaledb_catalog .chunk_column_stats WHERE chunk_id IS NULL ;
16
+
17
+ IF num_null_chunk_ids > 0 THEN
18
+ RAISE WARNING ' chunk skipping has been disabled for all hypertables'
19
+ USING HINT = ' Use enable_chunk_skipping() to re-enable chunk skipping' ;
20
+ END IF;
21
+ END
22
+ $$;
23
+
24
+ DELETE FROM _timescaledb_catalog .chunk_column_stats WHERE chunk_id IS NULL ;
25
+ ALTER TABLE _timescaledb_catalog .chunk_column_stats ALTER COLUMN chunk_id SET NOT NULL ;
Original file line number Diff line number Diff line change 1
- -- Make chunk_id use NULL to mark special entries instead of 0
2
- -- (Invalid chunk) since that doesn't work with the FK constraint on
3
- -- chunk_id.
4
- ALTER TABLE _timescaledb_catalog .chunk_column_stats ALTER COLUMN chunk_id DROP NOT NULL ;
5
- UPDATE _timescaledb_catalog .chunk_column_stats SET chunk_id = NULL WHERE chunk_id = 0 ;
Original file line number Diff line number Diff line change 1
- -- Add back the chunk_column_stats NOT NULL constraint. But first
2
- -- delete all entries with with NULL since they will no longer be
3
- -- allowed. Note that reverting chunk_id back to 0 because it will
4
- -- violate the FK constraint. Even if we would revert, the downgrade
5
- -- tests for "restore" would fail due to violating entries. Removing
6
- -- the entries effectively means that collecting column stats for
7
- -- those columns will be disabled. It can be enabled again after
8
- -- downgrade. We emit a warning if anything was disabled.
9
- DO $$
10
- DECLARE
11
- num_null_chunk_ids int ;
12
- BEGIN
13
-
14
- SELECT count (* ) INTO num_null_chunk_ids
15
- FROM _timescaledb_catalog .chunk_column_stats WHERE chunk_id IS NULL ;
16
-
17
- IF num_null_chunk_ids > 0 THEN
18
- RAISE WARNING ' chunk skipping has been disabled for all hypertables'
19
- USING HINT = ' Use enable_chunk_skipping() to re-enable chunk skipping' ;
20
- END IF;
21
- END
22
- $$;
23
-
24
- DELETE FROM _timescaledb_catalog .chunk_column_stats WHERE chunk_id IS NULL ;
25
- ALTER TABLE _timescaledb_catalog .chunk_column_stats ALTER COLUMN chunk_id SET NOT NULL ;
Original file line number Diff line number Diff line change 1
- version = 2.20.2
2
- previous_version = 2.20.1
3
- downgrade_to_version = 2.20.1
1
+ version = 2.20.3
2
+ previous_version = 2.20.2
3
+ downgrade_to_version = 2.20.2
You can’t perform that action at this time.
0 commit comments