Skip to content

Commit

Permalink
Merge pull request #11 from electric-saw/feat/bloat-metrics-by-statistic
Browse files Browse the repository at this point in the history
fix: remove btree filter on bloat query
  • Loading branch information
snakeice authored Jan 20, 2024
2 parents 69c2be1 + 52aaaaa commit 7faa6e1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/db/bloat_queries.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,9 @@ FROM (
string_to_array(textin(int2vectorout(i.indkey)),' ')::int[] AS indkey
FROM pg_index i
JOIN pg_class ci ON ci.oid=i.indexrelid
WHERE ci.relam=(SELECT oid FROM pg_am WHERE amname = 'btree')
AND ci.relpages > 0
WHERE
-- ci.relam=(SELECT oid FROM pg_am WHERE amname = 'btree') AND
ci.relpages > 0
AND ci.relnamespace = ($1)::regnamespace
AND ci.relname = $2
) AS idx_data
Expand Down

0 comments on commit 7faa6e1

Please sign in to comment.