Re: Analyze on slave promoted.

Поиск
Список
Период
Сортировка
От Vik Fearing
Тема Re: Analyze on slave promoted.
Дата
Msg-id ba1c2d91-d1af-f704-7374-5f2ec771db38@2ndquadrant.com
обсуждение исходный текст
Ответ на Analyze on slave promoted.  (Joao Junior <jcoj2006@gmail.com>)
Список pgsql-performance
On 26/09/2019 09:54, Joao Junior wrote:
> Hi,
> Is this necessary to run analyze on a slave using streaming
> replication  after promotion??
>

Yes, you should run ANALYZE on all of your tables in all of your
databases after a promotion.  The data distribution statistics are
replicated, as Pavel mentioned, but other statistics are not.  In
particular, pg_stat_all_tables.n_dead_tup is not replicated and so
autovacuum has no idea when it needs to run.




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

Предыдущее
От: Laurenz Albe
Дата:
Сообщение: Re: Autovacuum is cleaning very less dead tuples
Следующее
От: Edilmar Alves
Дата:
Сообщение: Re: Slow pg_publication_tables with many schemas and tables