Add 'PostgreSQL/description/indexuserates.sql'
This commit is contained in:
parent
72906f7ab6
commit
80fd3f275d
3
PostgreSQL/description/indexuserates.sql
Normal file
3
PostgreSQL/description/indexuserates.sql
Normal 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;
|
||||
Loading…
Reference in New Issue
Block a user