Re: Forcing analyze on DB after upgrading?

Поиск
Список
Период
Сортировка
От Laurenz Albe
Тема Re: Forcing analyze on DB after upgrading?
Дата
Msg-id 6912b4dadb63b3b766d3536b6d27d76840759f35.camel@cybertec.at
обсуждение исходный текст
Ответ на Re: Forcing analyze on DB after upgrading?  (Wells Oliver <wells.oliver@gmail.com>)
Список pgsql-admin
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




В списке pgsql-admin по дате отправления:

Предыдущее
От: Wells Oliver
Дата:
Сообщение: Re: Forcing analyze on DB after upgrading?
Следующее
От: Pepe TD Vo
Дата:
Сообщение: commit & rollback