Skip to content

Commit

Permalink
fix new variable name in maintenance function
Browse files Browse the repository at this point in the history
  • Loading branch information
keithf4 committed Nov 6, 2024
1 parent 5ad891a commit b75de50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sql/functions/run_maintenance.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b75de50

Please sign in to comment.