We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d230b88 + b911ac8 commit b82a71cCopy full SHA for b82a71c
sql/i2_redundant_indexes.sql
@@ -49,7 +49,6 @@ with unused as (
49
pg_stat_user_indexes.idx_scan = 0 /* < 10 or smth */
50
and pg_index.indisunique is false
51
and pg_stat_user_indexes.idx_scan::float/(coalesce(n_tup_ins,0)+coalesce(n_tup_upd,0)-coalesce(n_tup_hot_upd,0)+coalesce(n_tup_del,0)+1)::float<0.01
52
- and (coalesce(n_tup_ins,0)+coalesce(n_tup_upd,0)-coalesce(n_tup_hot_upd,0)+coalesce(n_tup_del,0))>10000
53
), index_data as (
54
select *, string_to_array(indkey::text,' ') as key_array,array_length(string_to_array(indkey::text,' '),1) as nkeys
55
from pg_index
0 commit comments