33
33
#include "bgw_policy/chunk_stats.h"
34
34
#include "bgw_policy/compression_api.h"
35
35
#include "bgw_policy/continuous_aggregate_api.h"
36
+ #include "bgw_policy/policy_config.h"
36
37
#include "bgw_policy/policy_utils.h"
37
38
#include "bgw_policy/reorder_api.h"
38
39
#include "bgw_policy/retention_api.h"
@@ -266,7 +267,7 @@ policy_reorder_execute(int32 job_id, Jsonb *config)
266
267
void
267
268
policy_reorder_read_and_validate_config (Jsonb * config , PolicyReorderData * policy )
268
269
{
269
- int32 htid = policy_reorder_get_hypertable_id (config );
270
+ int32 htid = policy_config_get_hypertable_id (config );
270
271
Hypertable * ht = ts_hypertable_get_by_id (htid );
271
272
272
273
if (!ht )
@@ -319,7 +320,7 @@ policy_retention_read_and_validate_config(Jsonb *config, PolicyRetentionData *po
319
320
interval_getter = policy_retention_get_drop_after_interval ;
320
321
bool use_creation_time = false;
321
322
322
- object_relid = ts_hypertable_id_to_relid (policy_retention_get_hypertable_id (config ), false);
323
+ object_relid = ts_hypertable_id_to_relid (policy_config_get_hypertable_id (config ), false);
323
324
hypertable = ts_hypertable_cache_get_cache_and_entry (object_relid , CACHE_FLAG_NONE , & hcache );
324
325
325
326
open_dim = get_open_dimension_for_hypertable (hypertable , false);
@@ -527,8 +528,7 @@ policy_refresh_cagg_read_and_validate_config(Jsonb *config, PolicyContinuousAggD
527
528
void
528
529
policy_compression_read_and_validate_config (Jsonb * config , PolicyCompressionData * policy_data )
529
530
{
530
- Oid table_relid =
531
- ts_hypertable_id_to_relid (policy_compression_get_hypertable_id (config ), false);
531
+ Oid table_relid = ts_hypertable_id_to_relid (policy_config_get_hypertable_id (config ), false);
532
532
Cache * hcache ;
533
533
Hypertable * hypertable =
534
534
ts_hypertable_cache_get_cache_and_entry (table_relid , CACHE_FLAG_NONE , & hcache );
@@ -542,8 +542,7 @@ policy_compression_read_and_validate_config(Jsonb *config, PolicyCompressionData
542
542
void
543
543
policy_recompression_read_and_validate_config (Jsonb * config , PolicyCompressionData * policy_data )
544
544
{
545
- Oid table_relid =
546
- ts_hypertable_id_to_relid (policy_compression_get_hypertable_id (config ), false);
545
+ Oid table_relid = ts_hypertable_id_to_relid (policy_config_get_hypertable_id (config ), false);
547
546
Cache * hcache ;
548
547
Hypertable * hypertable =
549
548
ts_hypertable_cache_get_cache_and_entry (table_relid , CACHE_FLAG_NONE , & hcache );
0 commit comments