Re: Wierd quirk of HS/SR, probably not fixable - Mailing list pgsql-hackers

From Heikki Linnakangas
Subject Re: Wierd quirk of HS/SR, probably not fixable
Date
Msg-id 4BD6AD97.8030202@enterprisedb.com
Whole thread Raw
In response to Re: Wierd quirk of HS/SR, probably not fixable  (Fujii Masao <masao.fujii@gmail.com>)
Responses Re: Wierd quirk of HS/SR, probably not fixable  (Robert Haas <robertmhaas@gmail.com>)
Re: Wierd quirk of HS/SR, probably not fixable  (Simon Riggs <simon@2ndQuadrant.com>)
List pgsql-hackers
Fujii Masao wrote:
> On Tue, Apr 27, 2010 at 4:19 PM, Heikki Linnakangas
> <heikki.linnakangas@enterprisedb.com> wrote:
>> Hmm, we could throw an error in the standby, when we see a shutdown
>> checkpoint while we're waiting for an end-backup record. If the database
>> was shut down before pg_stop_backup(), we know that the backup was
>> cancelled and the end-backup record we're waiting for will never arrive.
> 
> Sounds good. This would work fine even if an immediate shutdown is done
> instead since the primary ends up generating a shutdown checkpoint record
> when restarting.

Yep. I've committed a patch to do that.

--  Heikki Linnakangas EnterpriseDB   http://www.enterprisedb.com


pgsql-hackers by date:

Previous
From: Dimitri Fontaine
Date:
Subject: Re: recovery_connections cannot start
Next
From: Bruce Momjian
Date:
Subject: Re: pg_migrator