Медленные запросы postgres

Топ 10 запросов с наибольшим суммарным временем выполнения

psql -U postgres -d mydb -c "SELECT round(total_exec_time::numeric,2) ms, calls, round((total_exec_time/calls)::numeric,2) avg_ms, query FROM pg_stat_statements ORDER BY total_exec_time DESC LIMIT 10;"
more postgres all 29 commands →