Adding check for postgres autovaccum