Re: pause recovery if pitr target not reached

Leif Gunnar Erlandsen <leif@lako.no>

From: "Leif Gunnar Erlandsen" <leif@lako.no>
To: "Peter Eisentraut" <peter.eisentraut@2ndquadrant.com>, "Fujii Masao" <masao.fujii@gmail.com>
Cc: "PostgreSQL-development" <pgsql-hackers@postgresql.org>
Date: 2019-11-22T11:26:59Z
Lists: pgsql-hackers
"Peter Eisentraut" <peter.eisentraut@2ndquadrant.com> skrev 22. november 2019 kl. 11:50:

> On 2019-11-21 13:50, Leif Gunnar Erlandsen wrote:
> 
>> Pausing was choosen in the patch as pause was the expected behaivior if target was reached.
> 
> Pausing is the expect behavior when the target is reached because that is the default setting of
> recovery_target_action. Your patch does not take recovery_target_action into account.

No it does not. It works well to demonstrate its purpose though.
And it might be to stop with FATAL would be more correct.

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



Commits

  1. Fail if recovery target is not reached