Re: Basebackups reported as idle

From: Magnus Hagander <magnus(at)hagander(dot)net>
To: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
Cc: David Steele <david(at)pgmasters(dot)net>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Basebackups reported as idle
Date: 2017-12-28 17:21:46
Message-ID: CABUevEw7gjVopM+=oSbJTRkaXYfD_8+7qt1qKnoRhaO-+e9m1g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, Dec 22, 2017 at 2:31 AM, Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
wrote:

> On Thu, Dec 21, 2017 at 02:46:15PM +0100, Magnus Hagander wrote:
> > On Thu, Dec 21, 2017 at 1:38 AM, Michael Paquier <
> michael(dot)paquier(at)gmail(dot)com>
> > wrote:
> >> I think that the call to pgstat_report_activity in WalSndLoop() should
> >> be kept as well. There is a small gap between the moment the process
> >> is started and the first replication command is run.
> >>
> >
> > Eh. But WalSndLoop() is called *after* exec_replication_command(), isn't
> > it? exec_replication_command() is called from PostgresMain(), and then
> > calls WalSndLoop().
> >
> > So I agree there is a small gap, but actually moving it to
> > exec_replication_command() makes that gap smaller than it was before, no?
>
> My turn to read things wrong then, thinking that WalSndLoop() was the
> main routine used for starting the WAL sender process. You are right
> removing
> the call there is adapted.
>
> Could you update the patch?
>

I thought I had, but I can see now that email was a figment of my
imagination :)

PFA an actual patch.

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

Attachment Content-Type Size
base_backup_running3.patch text/x-patch 1.5 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2017-12-28 17:28:52 Re: AS OF queries
Previous Message Konstantin Knizhnik 2017-12-28 16:36:30 Re: AS OF queries