pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Fujii Masao <fujii@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Log long wait time on recovery conflict when it's resolved.
Date: Wed, 13 Jan 2021 14:01:12 +0000
Message-ID: <E1kzgi0-0006W2-Dq@gemulon.postgresql.org> (raw)

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(-)



Message-ID: <E1kzgi0-0006W2-Dq@gemulon.postgresql.org>
Permalink:  ../E1kzgi0-0006W2-Dq@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1kzgi0-0006W2-Dq@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: fujii@postgresql.org
  Subject: Re: pgsql: Log long wait time on recovery conflict when it's resolved.
  In-Reply-To: <E1kzgi0-0006W2-Dq@gemulon.postgresql.org>
  References: <E1kzgi0-0006W2-Dq@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox