From b75de507f1b9de9120f6d2a8cb223fc1efc95ed3 Mon Sep 17 00:00:00 2001 From: Keith Fiske Date: Wed, 6 Nov 2024 15:48:03 -0500 Subject: [PATCH] fix new variable name in maintenance function --- sql/functions/run_maintenance.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sql/functions/run_maintenance.sql b/sql/functions/run_maintenance.sql index be51caa..8ea5b2c 100644 --- a/sql/functions/run_maintenance.sql +++ b/sql/functions/run_maintenance.sql @@ -227,14 +227,14 @@ LOOP , v_partition_expression , v_row_max_time.partition_schemaname , v_row_max_time.partition_tablename - ) INTO v_max_timestamp; + ) INTO v_child_timestamp; ELSIF v_control_type IN ('text', 'uuid') THEN EXECUTE format('SELECT %s(%s::text) FROM %I.%I LIMIT 1' , v_time_decoder , v_partition_expression , v_row_max_time.partition_schemaname , v_row_max_time.partition_tablename - ) INTO v_max_timestamp; + ) INTO v_child_timestamp; END IF; IF v_row.infinite_time_partitions AND v_child_timestamp < CURRENT_TIMESTAMP THEN