-- QueryAstra · PostgreSQL slow query snapshot SELECT left(query, 60) AS query_preview, calls, round(total_exec_time::numeric, 2) AS total_ms, round(mean_exec_time::numeric, 2) AS mean_ms, round(stddev_exec_time::numeric, 2) AS stddev_ms FROM pg_stat_statements WHERE calls > 50 ORDER BY mean_exec_time DESC LIMIT 20