May 2019
Intermediate to advanced
600 pages
20h 46m
English
You may want to set up monitoring for the bloated tables and indexes. Look at the Nagios plugin called check_postgres_bloat, which is a part of the check_postgres plugins.
It provides some flexible options to assess bloat. Unfortunately, it's not that well-documented, but if you've read this, it should make sense. You'll need to play with it to get the thresholding correct anyway, so that shouldn't be a problem.
Also, note that the only way to know for certain the exact bloat of a table or index is to scan the whole relation. Anything else is just an estimate and might lead to you running maintenance either too early or too late.
Read now
Unlock full access