-- Fix security warnings: Set search_path for all retention policy functions ALTER FUNCTION cleanup_old_metrics(INTEGER) SET search_path = public; ALTER FUNCTION cleanup_old_anomalies(INTEGER) SET search_path = public; ALTER FUNCTION cleanup_old_alerts(INTEGER) SET search_path = public; ALTER FUNCTION cleanup_old_incidents(INTEGER) SET search_path = public; ALTER FUNCTION run_data_retention_cleanup() SET search_path = public;