mirror of
https://github.com/timescale/timescaledb.git
synced 2025-05-16 02:23:49 +08:00
policy_job_error_retention was removed in 2.15.0 but we did not get rid of the job that called it back then. This patch removes the defunct job definition calling that function.
50 lines
2.1 KiB
SQL
50 lines
2.1 KiB
SQL
-- 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 @extschema@.compress_chunk(uncompressed_chunk REGCLASS, if_not_compressed BOOLEAN, recompress BOOLEAN);
|
|
|
|
CREATE FUNCTION @extschema@.compress_chunk(
|
|
uncompressed_chunk REGCLASS,
|
|
if_not_compressed BOOLEAN = true,
|
|
recompress BOOLEAN = false,
|
|
compress_using NAME = NULL
|
|
) RETURNS REGCLASS AS '@MODULE_PATHNAME@', 'ts_update_placeholder' LANGUAGE C VOLATILE;
|
|
|
|
DROP FUNCTION IF EXISTS @extschema@.add_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 @extschema@.add_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,
|
|
compress_using NAME = 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,
|
|
compress_using NAME = 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);
|