pgsql: Log long wait time on recovery conflict when it's resolved.

From: Fujii Masao <fujii(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Log long wait time on recovery conflict when it's resolved.
Date: 2021-01-13 14:01:12
Message-ID: E1kzgi0-0006W2-Dq@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/39b03690b529935a3c33024ee68f08e2d347cf4f

Modified Files
--------------
doc/src/sgml/config.sgml | 2 +-
src/backend/storage/buffer/bufmgr.c | 12 +++++++++-
src/backend/storage/ipc/standby.c | 47 ++++++++++++++++++++++++++++---------
src/backend/storage/lmgr/proc.c | 12 +++++++++-
src/include/storage/standby.h | 3 ++-
5 files changed, 61 insertions(+), 15 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Geoghegan 2021-01-13 16:11:20 pgsql: Pass down "logically unchanged index" hint.
Previous Message Heikki Linnakangas 2021-01-13 10:34:20 pgsql: Fix portability issues in the new gist pageinspect test.