Add 'PostgreSQL/description/indexuserates.sql'

This commit is contained in:
jsmith 2022-05-04 14:52:58 +00:00
parent 72906f7ab6
commit 80fd3f275d

View File

@ -0,0 +1,3 @@
SELECT relname, 100 * idx_scan / (seq_scan + idx_scan) percent_of_times_index_used, n_live_tup rows_in_table
FROM pg_stat_user_tables
ORDER BY n_live_tup DESC;