From: | Rajesh Kumar <rajeshkumar(dot)dba09(at)gmail(dot)com> |
---|---|
To: | Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at> |
Cc: | SOzcn <selahattinozcnma(at)gmail(dot)com>, Pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org> |
Subject: | Re: Vacuum |
Date: | 2024-01-02 19:52:15 |
Message-ID: | CAJk5AtbUHzJFX-xDpeDq=gWXcgv1QteLjyo=JBLbbbQkHo5msA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
Vacuum operation happens only in primary. How is that replicated?
On Wed, 3 Jan 2024, 01:04 Laurenz Albe, <laurenz(dot)albe(at)cybertec(dot)at> wrote:
> On Tue, 2024-01-02 at 18:33 +0300, SOzcn wrote:
> > Rajesh Kumar <rajeshkumar(dot)dba09(at)gmail(dot)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
>
From | Date | Subject | |
---|---|---|---|
Next Message | M Sarwar | 2024-01-02 21:03:48 | Database of the year 2023 |
Previous Message | Laurenz Albe | 2024-01-02 19:34:52 | Re: Vacuum |