Re: Online base backup from the hot-standby - Mailing list pgsql-hackers

From Fujii Masao
Subject Re: Online base backup from the hot-standby
Date
Msg-id CAHGQGwEHTNLyhDL2H-gyyoZ8kpPC7zSM9um0X9sbo0iNhJ0=eg@mail.gmail.com
Whole thread Raw
In response to Re: Online base backup from the hot-standby  (Jun Ishiduka <ishizuka.jun@po.ntts.co.jp>)
Responses Re: Online base backup from the hot-standby
List pgsql-hackers
2011/7/5 Jun Ishiduka <ishizuka.jun@po.ntts.co.jp>:
>
>> What about using backupStartPoint to check whether this recovery
>> started from the backup or not?
>
> No, postgres can check whether this recovery started from the backup
> or not, but can not check whether standby server or master (got backup
> from).

Oh, right. We cannot distinguish the following two cases just by using
minRecoveryPoint and backupStartPoint.
   * The standby starts from the backup taken from the standby   * The standby starts after it crashes during
recoveringfrom the      backup taken from the master
 

As you proposed, adding new field which stores the backup end location
taken from minRecoveryPoint, into pg_control sounds good idea.

Regards,

-- 
Fujii Masao
NIPPON TELEGRAPH AND TELEPHONE CORPORATION
NTT Open Source Software Center


pgsql-hackers by date:

Previous
From: Peter Geoghegan
Date:
Subject: Re: Latch implementation that wakes on postmaster death on both win32 and Unix
Next
From: Fujii Masao
Date:
Subject: Re: Inconsistency between postgresql.conf and docs