When clicking "Optimize" in Resolve with PostgreSQL, it asks for the bin/ directory. However, we don't use the local Postgres, but one on a server. That may not be the exact same version than the local Postgres install, so I would rather not run the local executables, but the ones on the server.
To "optimize" on the server itself, possibly through a cron job, I need to know what "optimize" is actually doing.
I guess it does "vacuumdb". Can someone confirm? And does it also add the "--analyze" switch?
Does it also run "reindexdb"?
Also, is there any reason to run vacuumdb by hand, when the server does autovacuum anyway?
Or does "optimize" do something completely different, or in a very special way?
(There was a very similar question here:
Which specific flags for PostgreSQL client applications? but unfortunately it didn't get any reply)