我启动了以下命令,显示在本文档中: https ://www.postgresql.org/docs/current/pgstatstatements.html
SELECT query,
calls,
total_time,
rows,
100.0 * shared_blks_hit / nullif(shared_blks_hit + shared_blks_read, 0) AS hit_percent
FROM pg_stat_statements
ORDER BY total_time DESC
LIMIT 5;
但我不知道如何解释stddev_time
(显然这可以显示导致问题的查询)
而且我不明白如何解释以下值:
100.0 * shared_blks_hit / nullif(shared_blks_hit + shared_blks_read, 0) AS hit_percent
当它接近 0 或 100 时会更好吗?