mirror of
https://github.com/timescale/timescaledb.git
synced 2025-05-16 02:23:49 +08:00
Remove unused compression policy helper functions
This patch removes the following unused functions: policy_compression_get_compress_after_int(const Jsonb *config) policy_compression_get_compress_after_interval(const Jsonb *config) policy_compression_get_compress_created_before_interval(const Jsonb *config)
This commit is contained in:
parent
48c9edda9c
commit
e1a2c64743
@ -65,52 +65,6 @@ policy_compression_get_hypertable_id(const Jsonb *config)
|
||||
return hypertable_id;
|
||||
}
|
||||
|
||||
int64
|
||||
policy_compression_get_compress_after_int(const Jsonb *config)
|
||||
{
|
||||
bool found;
|
||||
int64 compress_after =
|
||||
ts_jsonb_get_int64_field(config, POL_COMPRESSION_CONF_KEY_COMPRESS_AFTER, &found);
|
||||
|
||||
if (!found)
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_INTERNAL_ERROR),
|
||||
errmsg("could not find %s in config for job",
|
||||
POL_COMPRESSION_CONF_KEY_COMPRESS_AFTER)));
|
||||
|
||||
return compress_after;
|
||||
}
|
||||
|
||||
Interval *
|
||||
policy_compression_get_compress_after_interval(const Jsonb *config)
|
||||
{
|
||||
Interval *interval =
|
||||
ts_jsonb_get_interval_field(config, POL_COMPRESSION_CONF_KEY_COMPRESS_AFTER);
|
||||
|
||||
if (interval == NULL)
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_INTERNAL_ERROR),
|
||||
errmsg("could not find %s in config for job",
|
||||
POL_COMPRESSION_CONF_KEY_COMPRESS_AFTER)));
|
||||
|
||||
return interval;
|
||||
}
|
||||
|
||||
Interval *
|
||||
policy_compression_get_compress_created_before_interval(const Jsonb *config)
|
||||
{
|
||||
Interval *interval =
|
||||
ts_jsonb_get_interval_field(config, POL_COMPRESSION_CONF_KEY_COMPRESS_CREATED_BEFORE);
|
||||
|
||||
if (interval == NULL)
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_INTERNAL_ERROR),
|
||||
errmsg("could not find %s in config for job",
|
||||
POL_COMPRESSION_CONF_KEY_COMPRESS_CREATED_BEFORE)));
|
||||
|
||||
return interval;
|
||||
}
|
||||
|
||||
int64
|
||||
policy_recompression_get_recompress_after_int(const Jsonb *config)
|
||||
{
|
||||
|
@ -19,9 +19,6 @@ extern Datum policy_recompression_proc(PG_FUNCTION_ARGS);
|
||||
extern Datum policy_compression_check(PG_FUNCTION_ARGS);
|
||||
|
||||
int32 policy_compression_get_hypertable_id(const Jsonb *config);
|
||||
int64 policy_compression_get_compress_after_int(const Jsonb *config);
|
||||
Interval *policy_compression_get_compress_after_interval(const Jsonb *config);
|
||||
Interval *policy_compression_get_compress_created_before_interval(const Jsonb *config);
|
||||
int32 policy_compression_get_maxchunks_per_job(const Jsonb *config);
|
||||
int64 policy_recompression_get_recompress_after_int(const Jsonb *config);
|
||||
Interval *policy_recompression_get_recompress_after_interval(const Jsonb *config);
|
||||
|
Loading…
x
Reference in New Issue
Block a user