Re: streaming replication vacuum - Mailing list pgsql-general

From Magnus Hagander
Subject Re: streaming replication vacuum
Date
Msg-id CABUevEySGifJJh8c+4YDTyB=u-qUT7jA+YBgfgjEU_UAO2vGuw@mail.gmail.com
Whole thread Raw
In response to streaming replication vacuum  (dhaval jaiswal <dhavallj@hotmail.com>)
Responses Re: streaming replication vacuum
List pgsql-general
On Fri, Dec 30, 2011 at 07:35, dhaval jaiswal <dhavallj@hotmail.com> wrote:
>
> Might be discussed but not clear for the below query.
>
> In async. streaming replication do I need to run VACUUM & ANALYZE on both
> master & slave.
> Bec, while querying on master getting below result, but slave's system table
> is not updated.

You run VACUUM and ANALYZE on the master only, and the results are
automatically replicated to the slave.

However, the *statistics views* on the slave are not updated. That's
why it looks like it's not been run, even though it has.

--
 Magnus Hagander
 Me: http://www.hagander.net/
 Work: http://www.redpill-linpro.com/

pgsql-general by date:

Previous
From: Alexander Farber
Date:
Subject: Re: Verifying a timestamp is null or in the past
Next
From: Alban Hertroys
Date:
Subject: Re: Verifying a timestamp is null or in the past