Skip to content

Commit b82a71c

Browse files
authored
Merge branch 'master' into b4_fixes
2 parents d230b88 + b911ac8 commit b82a71c

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

sql/i2_redundant_indexes.sql

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ with unused as (
4949
pg_stat_user_indexes.idx_scan = 0 /* < 10 or smth */
5050
and pg_index.indisunique is false
5151
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
5352
), index_data as (
5453
select *, string_to_array(indkey::text,' ') as key_array,array_length(string_to_array(indkey::text,' '),1) as nkeys
5554
from pg_index

0 commit comments

Comments
 (0)