From 8da8728bd2543cf44b9c18aef90d35f73f565b1b Mon Sep 17 00:00:00 2001 From: jsmith Date: Thu, 15 Sep 2022 13:42:35 +0000 Subject: [PATCH] Update 'PostgreSQL/description/index_usage_by_scans.sql' --- PostgreSQL/description/index_usage_by_scans.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PostgreSQL/description/index_usage_by_scans.sql b/PostgreSQL/description/index_usage_by_scans.sql index 9678fbc..e6f1768 100644 --- a/PostgreSQL/description/index_usage_by_scans.sql +++ b/PostgreSQL/description/index_usage_by_scans.sql @@ -16,4 +16,4 @@ FROM LEFT JOIN pg_stat_all_indexes psai ON i.indexrelid = psai.indexrelid WHERE t.schemaname NOT IN ('pg_catalog', 'information_schema') -ORDER BY psai.idx_scan DESC; \ No newline at end of file +ORDER BY number_of_scans DESC; \ No newline at end of file