From 3a74763337ff4f19d3e67a83e27345f3489eb63f Mon Sep 17 00:00:00 2001 From: Hari Sekhon Date: Wed, 5 Aug 2020 16:49:33 +0100 Subject: [PATCH] updated postgres_indexes_caches_hit_ratio.sql --- sql/postgres_indexes_caches_hit_ratio.sql | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sql/postgres_indexes_caches_hit_ratio.sql b/sql/postgres_indexes_caches_hit_ratio.sql index e11df5be..127d5eef 100644 --- a/sql/postgres_indexes_caches_hit_ratio.sql +++ b/sql/postgres_indexes_caches_hit_ratio.sql @@ -24,4 +24,6 @@ SELECT SUM(idx_blks_hit) AS ratio FROM - pg_statio_user_indexes; + pg_statio_user_indexes +ORDER BY + ratio DESC;