Re: Forcing analyze on DB after upgrading?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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






[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux