-
Notifications
You must be signed in to change notification settings - Fork 916
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.17.2 release. We recommend that you upgrade at the next available opportunity. **Features** * #7271 Hypercore table access method * #7271 Push down ORDER BY in real time continuous aggregate queries * #7295: Support ALTER TABLE SET ACCESS METHOD on hypertable. * #7390 Disable custom hashagg planner code * #7411 Change parameter name to enable Hypercore TAM * #7412 Add GUC for hypercore_use_access_method default * #7413: Add GUC for segmentwise recompression. **Bugfixes** * #7378 Remove obsolete job referencing policy_job_error_retention * #7409 Update bgw job table when altering procedure * #7426 Fix datetime parsing error in chunk constraint creation * #7432 Verify that heap tuple is valid before using * #7434 Fixes segfault when internally set the replica identity for a given chunk **Thanks** * @bharrisau for reporting the segfault when creating chunks * @pgloader for reporting an issue an internal background job
- Loading branch information
1 parent
cbfd386
commit cc2261d
Showing
20 changed files
with
130 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 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
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 @@ | ||
-- remove obsolete job | ||
DELETE FROM _timescaledb_config.bgw_job WHERE id = 2; | ||
|
||
-- Hypercore updates | ||
CREATE FUNCTION _timescaledb_debug.is_compressed_tid(tid) RETURNS BOOL | ||
AS '@MODULE_PATHNAME@', 'ts_update_placeholder' LANGUAGE C STRICT; | ||
|
||
DROP FUNCTION IF EXISTS @[email protected]_chunk(uncompressed_chunk REGCLASS, if_not_compressed BOOLEAN, recompress BOOLEAN); | ||
|
||
CREATE FUNCTION @[email protected]_chunk( | ||
uncompressed_chunk REGCLASS, | ||
if_not_compressed BOOLEAN = true, | ||
recompress BOOLEAN = false, | ||
hypercore_use_access_method BOOL = NULL | ||
) RETURNS REGCLASS AS '@MODULE_PATHNAME@', 'ts_update_placeholder' LANGUAGE C VOLATILE; | ||
|
||
DROP FUNCTION IF EXISTS @[email protected]_compression_policy(hypertable REGCLASS, compress_after "any", if_not_exists BOOL, schedule_interval INTERVAL, initial_start TIMESTAMPTZ, timezone TEXT, compress_created_before INTERVAL); | ||
|
||
CREATE FUNCTION @[email protected]_compression_policy( | ||
hypertable REGCLASS, | ||
compress_after "any" = NULL, | ||
if_not_exists BOOL = false, | ||
schedule_interval INTERVAL = NULL, | ||
initial_start TIMESTAMPTZ = NULL, | ||
timezone TEXT = NULL, | ||
compress_created_before INTERVAL = NULL, | ||
hypercore_use_access_method BOOL = NULL | ||
) | ||
RETURNS INTEGER | ||
AS '@MODULE_PATHNAME@', 'ts_update_placeholder' | ||
LANGUAGE C VOLATILE; | ||
|
||
DROP FUNCTION IF EXISTS timescaledb_experimental.add_policies(relation REGCLASS, if_not_exists BOOL, refresh_start_offset "any", refresh_end_offset "any", compress_after "any", drop_after "any"); | ||
|
||
CREATE FUNCTION timescaledb_experimental.add_policies( | ||
relation REGCLASS, | ||
if_not_exists BOOL = false, | ||
refresh_start_offset "any" = NULL, | ||
refresh_end_offset "any" = NULL, | ||
compress_after "any" = NULL, | ||
drop_after "any" = NULL, | ||
hypercore_use_access_method BOOL = NULL) | ||
RETURNS BOOL | ||
AS '@MODULE_PATHNAME@', 'ts_update_placeholder' | ||
LANGUAGE C VOLATILE; | ||
|
||
DROP PROCEDURE IF EXISTS _timescaledb_functions.policy_compression_execute(job_id INTEGER, htid INTEGER, lag ANYELEMENT, maxchunks INTEGER, verbose_log BOOLEAN, recompress_enabled BOOLEAN, use_creation_time BOOLEAN); | ||
|
||
DROP PROCEDURE IF EXISTS _timescaledb_functions.policy_compression(job_id INTEGER, config JSONB); |
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,46 @@ | ||
-- Hypercore AM | ||
DROP ACCESS METHOD IF EXISTS hypercore_proxy; | ||
DROP FUNCTION IF EXISTS ts_hypercore_proxy_handler; | ||
DROP ACCESS METHOD IF EXISTS hypercore; | ||
DROP FUNCTION IF EXISTS ts_hypercore_handler; | ||
DROP FUNCTION IF EXISTS _timescaledb_debug.is_compressed_tid; | ||
|
||
DROP FUNCTION IF EXISTS @[email protected]_chunk(uncompressed_chunk REGCLASS, if_not_compressed BOOLEAN, recompress BOOLEAN, hypercore_use_access_method BOOL); | ||
|
||
CREATE FUNCTION @[email protected]_chunk( | ||
uncompressed_chunk REGCLASS, | ||
if_not_compressed BOOLEAN = true, | ||
recompress BOOLEAN = false | ||
) RETURNS REGCLASS AS '@MODULE_PATHNAME@', 'ts_compress_chunk' LANGUAGE C STRICT VOLATILE; | ||
|
||
DROP FUNCTION IF EXISTS @[email protected]_compression_policy(hypertable REGCLASS, compress_after "any", if_not_exists BOOL, schedule_interval INTERVAL, initial_start TIMESTAMPTZ, timezone TEXT, compress_created_before INTERVAL, hypercore_use_access_method BOOL); | ||
|
||
CREATE FUNCTION @[email protected]_compression_policy( | ||
hypertable REGCLASS, | ||
compress_after "any" = NULL, | ||
if_not_exists BOOL = false, | ||
schedule_interval INTERVAL = NULL, | ||
initial_start TIMESTAMPTZ = NULL, | ||
timezone TEXT = NULL, | ||
compress_created_before INTERVAL = NULL | ||
) | ||
RETURNS INTEGER | ||
AS '@MODULE_PATHNAME@', 'ts_policy_compression_add' | ||
LANGUAGE C VOLATILE; | ||
|
||
DROP FUNCTION IF EXISTS timescaledb_experimental.add_policies(relation REGCLASS, if_not_exists BOOL, refresh_start_offset "any", refresh_end_offset "any", compress_after "any", drop_after "any", hypercore_use_access_method BOOL); | ||
|
||
CREATE FUNCTION timescaledb_experimental.add_policies( | ||
relation REGCLASS, | ||
if_not_exists BOOL = false, | ||
refresh_start_offset "any" = NULL, | ||
refresh_end_offset "any" = NULL, | ||
compress_after "any" = NULL, | ||
drop_after "any" = NULL) | ||
RETURNS BOOL | ||
AS '@MODULE_PATHNAME@', 'ts_policies_add' | ||
LANGUAGE C VOLATILE; | ||
|
||
DROP PROCEDURE IF EXISTS _timescaledb_functions.policy_compression_execute(job_id INTEGER, htid INTEGER, lag ANYELEMENT, maxchunks INTEGER, verbose_log BOOLEAN, recompress_enabled BOOLEAN, use_creation_time BOOLEAN, useam BOOLEAN); | ||
|
||
DROP PROCEDURE IF EXISTS _timescaledb_functions.policy_compression(job_id INTEGER, config JSONB); |
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 @@ | ||
-- remove obsolete job | ||
DELETE FROM _timescaledb_config.bgw_job WHERE id = 2; | ||
|
||
-- Hypercore updates | ||
CREATE FUNCTION _timescaledb_debug.is_compressed_tid(tid) RETURNS BOOL | ||
AS '@MODULE_PATHNAME@', 'ts_update_placeholder' LANGUAGE C STRICT; | ||
|
||
DROP FUNCTION IF EXISTS @[email protected]_chunk(uncompressed_chunk REGCLASS, if_not_compressed BOOLEAN, recompress BOOLEAN); | ||
|
||
CREATE FUNCTION @[email protected]_chunk( | ||
uncompressed_chunk REGCLASS, | ||
if_not_compressed BOOLEAN = true, | ||
recompress BOOLEAN = false, | ||
hypercore_use_access_method BOOL = NULL | ||
) RETURNS REGCLASS AS '@MODULE_PATHNAME@', 'ts_update_placeholder' LANGUAGE C VOLATILE; | ||
|
||
DROP FUNCTION IF EXISTS @[email protected]_compression_policy(hypertable REGCLASS, compress_after "any", if_not_exists BOOL, schedule_interval INTERVAL, initial_start TIMESTAMPTZ, timezone TEXT, compress_created_before INTERVAL); | ||
|
||
CREATE FUNCTION @[email protected]_compression_policy( | ||
hypertable REGCLASS, | ||
compress_after "any" = NULL, | ||
if_not_exists BOOL = false, | ||
schedule_interval INTERVAL = NULL, | ||
initial_start TIMESTAMPTZ = NULL, | ||
timezone TEXT = NULL, | ||
compress_created_before INTERVAL = NULL, | ||
hypercore_use_access_method BOOL = NULL | ||
) | ||
RETURNS INTEGER | ||
AS '@MODULE_PATHNAME@', 'ts_update_placeholder' | ||
LANGUAGE C VOLATILE; | ||
|
||
DROP FUNCTION IF EXISTS timescaledb_experimental.add_policies(relation REGCLASS, if_not_exists BOOL, refresh_start_offset "any", refresh_end_offset "any", compress_after "any", drop_after "any"); | ||
|
||
CREATE FUNCTION timescaledb_experimental.add_policies( | ||
relation REGCLASS, | ||
if_not_exists BOOL = false, | ||
refresh_start_offset "any" = NULL, | ||
refresh_end_offset "any" = NULL, | ||
compress_after "any" = NULL, | ||
drop_after "any" = NULL, | ||
hypercore_use_access_method BOOL = NULL) | ||
RETURNS BOOL | ||
AS '@MODULE_PATHNAME@', 'ts_update_placeholder' | ||
LANGUAGE C VOLATILE; | ||
|
||
DROP PROCEDURE IF EXISTS _timescaledb_functions.policy_compression_execute(job_id INTEGER, htid INTEGER, lag ANYELEMENT, maxchunks INTEGER, verbose_log BOOLEAN, recompress_enabled BOOLEAN, use_creation_time BOOLEAN); | ||
|
||
DROP PROCEDURE IF EXISTS _timescaledb_functions.policy_compression(job_id INTEGER, config JSONB); | ||
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,46 +0,0 @@ | ||
-- Hypercore AM | ||
DROP ACCESS METHOD IF EXISTS hypercore_proxy; | ||
DROP FUNCTION IF EXISTS ts_hypercore_proxy_handler; | ||
DROP ACCESS METHOD IF EXISTS hypercore; | ||
DROP FUNCTION IF EXISTS ts_hypercore_handler; | ||
DROP FUNCTION IF EXISTS _timescaledb_debug.is_compressed_tid; | ||
|
||
DROP FUNCTION IF EXISTS @[email protected]_chunk(uncompressed_chunk REGCLASS, if_not_compressed BOOLEAN, recompress BOOLEAN, hypercore_use_access_method BOOL); | ||
|
||
CREATE FUNCTION @[email protected]_chunk( | ||
uncompressed_chunk REGCLASS, | ||
if_not_compressed BOOLEAN = true, | ||
recompress BOOLEAN = false | ||
) RETURNS REGCLASS AS '@MODULE_PATHNAME@', 'ts_compress_chunk' LANGUAGE C STRICT VOLATILE; | ||
|
||
DROP FUNCTION IF EXISTS @[email protected]_compression_policy(hypertable REGCLASS, compress_after "any", if_not_exists BOOL, schedule_interval INTERVAL, initial_start TIMESTAMPTZ, timezone TEXT, compress_created_before INTERVAL, hypercore_use_access_method BOOL); | ||
|
||
CREATE FUNCTION @[email protected]_compression_policy( | ||
hypertable REGCLASS, | ||
compress_after "any" = NULL, | ||
if_not_exists BOOL = false, | ||
schedule_interval INTERVAL = NULL, | ||
initial_start TIMESTAMPTZ = NULL, | ||
timezone TEXT = NULL, | ||
compress_created_before INTERVAL = NULL | ||
) | ||
RETURNS INTEGER | ||
AS '@MODULE_PATHNAME@', 'ts_policy_compression_add' | ||
LANGUAGE C VOLATILE; | ||
|
||
DROP FUNCTION IF EXISTS timescaledb_experimental.add_policies(relation REGCLASS, if_not_exists BOOL, refresh_start_offset "any", refresh_end_offset "any", compress_after "any", drop_after "any", hypercore_use_access_method BOOL); | ||
|
||
CREATE FUNCTION timescaledb_experimental.add_policies( | ||
relation REGCLASS, | ||
if_not_exists BOOL = false, | ||
refresh_start_offset "any" = NULL, | ||
refresh_end_offset "any" = NULL, | ||
compress_after "any" = NULL, | ||
drop_after "any" = NULL) | ||
RETURNS BOOL | ||
AS '@MODULE_PATHNAME@', 'ts_policies_add' | ||
LANGUAGE C VOLATILE; | ||
|
||
DROP PROCEDURE IF EXISTS _timescaledb_functions.policy_compression_execute(job_id INTEGER, htid INTEGER, lag ANYELEMENT, maxchunks INTEGER, verbose_log BOOLEAN, recompress_enabled BOOLEAN, use_creation_time BOOLEAN, useam BOOLEAN); | ||
|
||
DROP PROCEDURE IF EXISTS _timescaledb_functions.policy_compression(job_id INTEGER, config JSONB); | ||
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.18.0-dev | ||
version = 2.18.0 | ||
update_from_version = 2.17.2 | ||
downgrade_to_version = 2.17.2 |