Log long wait time on recovery conflict when it's resolved.
commit39b03690b529935a3c33024ee68f08e2d347cf4f
authorFujii Masao <fujii@postgresql.org>
Wed, 13 Jan 2021 13:59:17 +0000 (13 22:59 +0900)
committerFujii Masao <fujii@postgresql.org>
Wed, 13 Jan 2021 13:59:17 +0000 (13 22:59 +0900)
tree535e89716c5be4aebec5debb1db1e37e6f0d43c3
parent6ecaaf810b8b9e3132f00549e630400f38a7ca37
Log long wait time on recovery conflict when it's resolved.

This is a follow-up of the work done in commit 0650ff2303. This commit
extends log_recovery_conflict_waits so that a log message is produced
also when recovery conflict has already been resolved after deadlock_timeout
passes, i.e., when the startup process finishes waiting for recovery
conflict after deadlock_timeout. This is useful in investigating how long
recovery conflicts prevented the recovery from applying WAL.

Author: Fujii Masao
Reviewed-by: Kyotaro Horiguchi, Bertrand Drouvot
Discussion: https://postgr.es/m/9a60178c-a853-1440-2cdc-c3af916cff59@amazon.com
doc/src/sgml/config.sgml
src/backend/storage/buffer/bufmgr.c
src/backend/storage/ipc/standby.c
src/backend/storage/lmgr/proc.c
src/include/storage/standby.h