How to determine if a postgres database needs to be vaccumed?
There is no single parameter that determines, whether vacuum is necessary, but it can be quite interesting to look at the thresholds that postgres uses to trigger autovacuum. 

Details and a query to do so can be found in another thread: Aggressive Autovacuum on PostgreSQL.