Re: vacuum on streaming replication

From: Andreas Kretschmer <andreas(at)a-kretschmer(dot)de>
To: pgsql-general(at)postgresql(dot)org,Alex Samad <alex(at)samad(dot)com(dot)au>
Subject: Re: vacuum on streaming replication
Date: 2017-07-31 05:28:05
Message-ID: 0AB97FED-499F-4DEB-9931-1B4F6C4E0376@a-kretschmer.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 31 July 2017 04:15:33 GMT+02:00, Alex Samad <alex(at)samad(dot)com(dot)au> wrote:
>Hi
>
>setup a cluster, with streaming replication and hot stand by
>
>the idea is to use the stand by to do queries whilst the primary is
>doing
>inserts.
>
>But I noticed the stats on the stand by server don't update, nor can I
>run
>vacuum against it as its in recovery mode.
>
>So how do update the stats and how will it affect my queries ?

The standby is read only, vacuum runs on the master and replicated to the standby. Analyse as well.

Regards, Andreas

--
2ndQuadrant - The PostgreSQL Support Company

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Michael Paquier 2017-07-31 08:08:50 Re: vacuum on streaming replication
Previous Message Igor Korot 2017-07-31 04:13:59 Re: Invalid byte sequence for encoding UTF-8 0xc3\n