Re: pause recovery if pitr target not reached

Peter Eisentraut <peter.eisentraut@2ndquadrant.com>

From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: Leif Gunnar Erlandsen <leif@lako.no>, Michael Paquier <michael@paquier.xyz>
Cc: Fujii Masao <masao.fujii@gmail.com>, PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2020-01-14T20:13:51Z
Lists: pgsql-hackers

Attachments

On 2019-12-11 12:40, Leif Gunnar Erlandsen wrote:
> Adding patch written for 13dev from git
> 
> "Michael Paquier" <michael@paquier.xyz> skrev 1. desember 2019 kl. 03:08:
> 
>> On Fri, Nov 22, 2019 at 11:26:59AM +0000, Leif Gunnar Erlandsen wrote:
>>
>>> No it does not. It works well to demonstrate its purpose though.
>>> And it might be to stop with FATAL would be more correct.
>>
>> This is still under active discussion. Please note that the latest
>> patch does not apply, so a rebase would be nice to have. I have moved
>> the patch to next CF, waiting on author.

I reworked your patch a bit.  I changed the outcome to be an error, as 
was discussed.  I also added tests and documentation.  Please take a look.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

Commits

  1. Fail if recovery target is not reached