vacuumdb --analyze for proper DB
vacuumdb --analyze for proper DB
When using logical retrieval mode, after restoring from a dump, we generate stats using vacuumdb --analyze.
We use management connection here, so we connect to some database like "postgres".
To ANALYZE the proper DB we need to specify --dbname for the target database.
Reported by @vitabaks.