Ahh good point. In that case, I don’t see a point in us running VACUUM ANALYZE from the app and have a PR to remove it.
https://github.com/discourse/discourse/pull/4687
If we need to tweak autovacuum, we should configure it from the template in discourse_docker.