So I recently wrote this script to help us in monitoring for table/index bloat
https://github.com/keithf4/pg_bloat_check
I based my query off of the one contained in check_postgres, since I thought it seemed fairly accurate with what I was expecting to get back.https://github.com/keithf4/pg_bloat_check
https://github.com/bucardo/check_postgres/blob/master/check_postgres.pl#L3512
CASE WHEN v ~ 'mingw32' OR v ~ '64-bit' THEN 8 ELSE 4 END AS ma
Anyone that's better able to evaluate which one of these two bloat check queries is more accurate able to provide some assistance?