From: Martín Fernández <fmartin91@gmail.com>
To: Mladen Gogala <gogala.mladen@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Reindex "locked" standby database
Date: Wed, 15 Dec 2021 01:20:51 -0300
Message-ID: <35C0351B-BB50-413E-9F7C-9BECB8A42752@gmail.com> (raw)
In-Reply-To: <75898e59-aa59-0293-1398-b9d1bcf70a3b@gmail.com>
References: <6C5D7205-487C-4AED-93AC-FBE042F51FC9@gmail.com>
<Ybli/z1eOBwmomgV@paquier.xyz>
<75898e59-aa59-0293-1398-b9d1bcf70a3b@gmail.com>
> On 15 Dec 2021, at 00:52, Mladen Gogala <gogala.mladen@gmail.com> wrote:
>
> On 12/14/21 22:37, Michael Paquier wrote:
>> You are referring to the startup process that replays WAL, right?
>> Without having an idea about the type of workload your primary and/or
>> standbys are facing, as well as an idea of the configuration you are
>> using on both (hot_standby_feedback for one), I have no direct idea,
>> but that could be a conflict caused by a concurrent vacuum.
>
> Hi Michael,
>
> I am preparing for a standby deployment. I don't have a standby yet and, therefore, I don't have any standby problems. Would it be advisable to turn vacuum off on the standby? Applying WAL will also, in theory, populate the statistics which is also held in the database blocks.
Take this with grain of salt since I’m far from being an expert :) , just trying to help. To my knowledge, assuming you would be running a physical standby, vacuum operations wouldn’t run there, only in the primary. Changes would get propagated via physical replication to your standby (blocks that change due to vacuuming on the primary).
Hope that helps.
>
> Regards
>
> --
> Mladen Gogala
> Database Consultant
> Tel: (347) 321-1217
> https://dbwhisperer.wordpress.com
>
>
>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: fmartin91@gmail.com, gogala.mladen@gmail.com
Subject: Re: Reindex "locked" standby database
In-Reply-To: <35C0351B-BB50-413E-9F7C-9BECB8A42752@gmail.com>
References: <6C5D7205-487C-4AED-93AC-FBE042F51FC9@gmail.com> <Ybli/z1eOBwmomgV@paquier.xyz> <75898e59-aa59-0293-1398-b9d1bcf70a3b@gmail.com> <35C0351B-BB50-413E-9F7C-9BECB8A42752@gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox