@@ -51,8 +51,8 @@ _timescaledb_functions.policy_compression_execute(
5151  verbose_log         BOOLEAN ,
5252  recompress_enabled  BOOLEAN ,
5353  reindex_enabled     BOOLEAN ,
54-   use_creation_time   BOOLEAN , 
55-   useam                BOOLEAN   =   NULL )
54+   use_creation_time   BOOLEAN 
55+ )
5656AS  $$
5757DECLARE
5858  htoid       REGCLASS;
@@ -115,7 +115,7 @@ BEGIN
115115  LOOP
116116    BEGIN 
117117      IF chunk_rec .status  =  bit_compressed OR  recompress_enabled IS TRUE THEN
118-         PERFORM @
[email protected] _chunk(
chunk_rec .
oid , hypercore_use_access_method  =>  useam );
118+         PERFORM @
[email protected] _chunk(
chunk_rec .
oid );
119119        numchunks_compressed :=  numchunks_compressed +  1 ;
120120      END IF;
121121    EXCEPTION WHEN OTHERS THEN
@@ -197,7 +197,6 @@ DECLARE
197197  recompress_enabled  BOOL;
198198  reindex_enabled     BOOL;
199199  use_creation_time   BOOL :=  FALSE;
200-   hypercore_use_access_method   BOOL;
201200BEGIN 
202201
203202  --  procedures with SET clause cannot execute transaction
@@ -239,18 +238,16 @@ BEGIN
239238    lag_value :=  compress_after;
240239  END IF;
241240
242-   hypercore_use_access_method :=  jsonb_object_field_text(config, ' hypercore_use_access_method' 
243- 
244241  --  execute the properly type casts for the lag value
245242  CASE dimtype
246243    WHEN ' TIMESTAMP' ' TIMESTAMPTZ' ' DATE' ' INTERVAL' 
247-       CALL _timescaledb_functions .policy_compression_execute (job_id, htid, lag_value::INTERVAL, maxchunks, verbose_log, recompress_enabled, reindex_enabled, use_creation_time, hypercore_use_access_method );
244+       CALL _timescaledb_functions .policy_compression_execute (job_id, htid, lag_value::INTERVAL, maxchunks, verbose_log, recompress_enabled, reindex_enabled, use_creation_time);
248245    WHEN ' BIGINT' 
249-       CALL _timescaledb_functions .policy_compression_execute (job_id, htid, lag_value::BIGINT , maxchunks, verbose_log, recompress_enabled, reindex_enabled, use_creation_time, hypercore_use_access_method );
246+       CALL _timescaledb_functions .policy_compression_execute (job_id, htid, lag_value::BIGINT , maxchunks, verbose_log, recompress_enabled, reindex_enabled, use_creation_time);
250247    WHEN ' INTEGER' 
251-       CALL _timescaledb_functions .policy_compression_execute (job_id, htid, lag_value::INTEGER , maxchunks, verbose_log, recompress_enabled, reindex_enabled, use_creation_time, hypercore_use_access_method );
248+       CALL _timescaledb_functions .policy_compression_execute (job_id, htid, lag_value::INTEGER , maxchunks, verbose_log, recompress_enabled, reindex_enabled, use_creation_time);
252249    WHEN ' SMALLINT' 
253-       CALL _timescaledb_functions .policy_compression_execute (job_id, htid, lag_value::SMALLINT , maxchunks, verbose_log, recompress_enabled, reindex_enabled, use_creation_time, hypercore_use_access_method );
250+       CALL _timescaledb_functions .policy_compression_execute (job_id, htid, lag_value::SMALLINT , maxchunks, verbose_log, recompress_enabled, reindex_enabled, use_creation_time);
254251  END CASE;
255252  COMMIT ;
256253END;
0 commit comments