On Tue, 2019-10-29 at 22:41 -0700, Wells Oliver wrote:
> Thanks! Unfortunately I can't find the shell script it created in /var/log/postgresql -- however,
> I ran vacuumdb --full --verbose --analyze-in-stages and the DB performs much, much better.
Ouch. --full might hurt.
> As I can't seem to find the script, anything else a good thing to do after doing pg_upgrade to prime the DB?
pg_upgrade recommends
vacuumdb --all --analyze-in-stages
which runs three analyze passes with different "default_statistics_target"
to get up and running as fast as possible, but if you can wait a little,
vacuumdb --all --analyze-only
will be faster.
Yours,
Laurenz Albe
--
Cybertec | https://www.cybertec-postgresql.com