heroku/heroku-pg-extras — pull request #22 by deafbybeheading (2013-04-23 23:48:00+00:00)
Title: Better bloat

Rewrite the bloat query to only support the Postgres versions actually used by Heroku, restructure it for readability with CTEs, and fold in index bloat and table bloat into a more readable structure.