aboutsummaryrefslogtreecommitdiff
path: root/src/backend/regex
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2021-08-16 12:11:53 +0900
committerMichael Paquier <michael@paquier.xyz>2021-08-16 12:11:53 +0900
commit7f0873f328efe057090071805be3f1ade48ecc8a (patch)
tree0c111d0cf08a21a42532d7914276b7cbc353e86f /src/backend/regex
parent48695decc27159275a10cf9e1f31bae51f311305 (diff)
downloadpostgresql-7f0873f328efe057090071805be3f1ade48ecc8a.tar.gz
postgresql-7f0873f328efe057090071805be3f1ade48ecc8a.zip
Refresh apply delay on reload of recovery_min_apply_delay at recovery
This commit ensures that the wait interval in the replay delay loop waiting for an amount of time defined by recovery_min_apply_delay is correctly handled on reload, recalculating the delay if this GUC value is updated, based on the timestamp of the commit record being replayed. The previous behavior would be problematic for example with replay still waiting even if the delay got reduced or just cancelled. If the apply delay was increased to a larger value, the wait would have just respected the old value set, finishing earlier. Author: Soumyadeep Chakraborty, Ashwin Agrawal Reviewed-by: Kyotaro Horiguchi, Michael Paquier Discussion: https://postgr.es/m/CAE-ML+93zfr-HLN8OuxF0BjpWJ17O5dv1eMvSE5jsj9jpnAXZA@mail.gmail.com Backpatch-through: 9.6
Diffstat (limited to 'src/backend/regex')
0 files changed, 0 insertions, 0 deletions