mirror of
https://github.com/postgres/postgres.git
synced 2025-06-16 06:01:02 +03:00
Make fast promotion the default promotion mode.
Continue to allow a request for synchronous checkpoints as a mechanism in case of problems.
This commit is contained in:
@ -9906,19 +9906,7 @@ CheckForStandbyTrigger(void)
|
||||
fast_promote = false;
|
||||
}
|
||||
|
||||
/*
|
||||
* We only look for fast promote via the pg_ctl promote option.
|
||||
* It would be possible to extend trigger file support for the
|
||||
* fast promotion option but that wouldn't be backwards compatible
|
||||
* anyway and we're looking to focus further work on the promote
|
||||
* option as the right way to signal end of recovery.
|
||||
*/
|
||||
if (fast_promote)
|
||||
ereport(LOG,
|
||||
(errmsg("received fast promote request")));
|
||||
else
|
||||
ereport(LOG,
|
||||
(errmsg("received promote request")));
|
||||
ereport(LOG, (errmsg("received promote request")));
|
||||
|
||||
ResetPromoteTriggered();
|
||||
triggered = true;
|
||||
@ -9934,6 +9922,7 @@ CheckForStandbyTrigger(void)
|
||||
(errmsg("trigger file found: %s", TriggerFile)));
|
||||
unlink(TriggerFile);
|
||||
triggered = true;
|
||||
fast_promote = true;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user