Log long wait time on recovery conflict when it's resolved.
Fujii Masao <fujii@postgresql.org>
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
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/config.sgml | modified | +1 −1 |
| src/backend/storage/buffer/bufmgr.c | modified | +11 −1 |
| src/backend/storage/ipc/standby.c | modified | +36 −11 |
| src/backend/storage/lmgr/proc.c | modified | +11 −1 |
| src/include/storage/standby.h | modified | +2 −1 |
Documentation touched
Discussion
- Add Information during standby recovery conflicts 82 messages · 2020-06-18 → 2021-01-13