Re: Vacuum

Поиск
Список
Период
Сортировка
От Laurenz Albe
Тема Re: Vacuum
Дата
Msg-id 6aa1d44a363d3af90fde41ae03aa27b08b86bdd2.camel@cybertec.at
обсуждение исходный текст
Ответ на Re: Vacuum  (SOzcn <selahattinozcnma@gmail.com>)
Ответы Re: Vacuum  (Rajesh Kumar <rajeshkumar.dba09@gmail.com>)
Список pgsql-admin
On Tue, 2024-01-02 at 18:33 +0300, SOzcn wrote:
> Rajesh Kumar <rajeshkumar.dba09@gmail.com>, 2 Oca 2024 Sal, 18:07 tarihinde şunu yazdı:
> > Postgres 15
> >
> > I am creating a new replica, and after the data is caught up and replication lag is 0,
> > I am doing a switchover and making a new replica as master.
> >
> > Now, in this case, do I have so vacuum analyze in master?
>
> Hello, I've tried the same thing, you need to analyze your databases in any case.
> Don't need a Full vacuum.

I don't think that is true.
Both table statistics and the effects of VACUUM are replicated.

What is not replicated are the statistics in "pg_stat_all_tables", so autovacuum
loses its brain during a switchover.

Yours,
Laurenz Albe



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: PostgreSQL local connection is taking 4 seconds
Следующее
От: Rajesh Kumar
Дата:
Сообщение: Re: Vacuum