forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commite4ba100
committed
Refresh apply delay on reload of recovery_min_apply_delay at recovery
This commit ensures that the wait interval in the replay delay loopwaiting for an amount of time defined by recovery_min_apply_delay iscorrectly handled on reload, recalculating the delay if this GUC valueis updated, based on the timestamp of the commit record being replayed.The previous behavior would be problematic for example with replaystill waiting even if the delay got reduced or just cancelled. If theapply delay was increased to a larger value, the wait would have justrespected the old value set, finishing earlier.Author: Soumyadeep Chakraborty, Ashwin AgrawalReviewed-by: Kyotaro Horiguchi, Michael PaquierDiscussion:https://postgr.es/m/CAE-ML+93zfr-HLN8OuxF0BjpWJ17O5dv1eMvSE5jsj9jpnAXZA@mail.gmail.comBackpatch-through: 9.61 parent0a208ed commite4ba100
1 file changed
+11
-2
lines changedLines changed: 11 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6248 | 6248 |
| |
6249 | 6249 |
| |
6250 | 6250 |
| |
6251 |
| - | |
| 6251 | + | |
| 6252 | + | |
| 6253 | + | |
| 6254 | + | |
6252 | 6255 |
| |
6253 | 6256 |
| |
6254 | 6257 |
| |
6255 | 6258 |
| |
6256 | 6259 |
| |
6257 | 6260 |
| |
6258 |
| - | |
| 6261 | + | |
| 6262 | + | |
| 6263 | + | |
| 6264 | + | |
| 6265 | + | |
| 6266 | + | |
| 6267 | + | |
6259 | 6268 |
| |
6260 | 6269 |
| |
6261 | 6270 |
| |
|
0 commit comments
Comments
(0)