pgsql: Add wait events for recovery conflicts.

From: Fujii Masao <fujii(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add wait events for recovery conflicts.
Date: 2020-04-03 03:16:30
Message-ID: E1jKCoo-0007iM-B9@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Add wait events for recovery conflicts.

This commit introduces new wait events RecoveryConflictSnapshot and
RecoveryConflictTablespace. The former is reported while waiting for
recovery conflict resolution on a vacuum cleanup. The latter is reported
while waiting for recovery conflict resolution on dropping tablespace.

Also this commit changes the code so that the wait event Lock is reported
while waiting in ResolveRecoveryConflictWithVirtualXIDs() for recovery
conflict resolution on a lock. Basically the wait event Lock is reported
during that wait, but previously was not reported only when that wait
happened in ResolveRecoveryConflictWithVirtualXIDs().

Author: Masahiko Sawada
Reviewed-by: Fujii Masao
Discussion: https://postgr.es/m/CA+fd4k4mXWTwfQLS3RPwGr4xnfAEs1ysFfgYHvmmoUgv6Zxvmg@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/18808f8c893d4f425f2d21b2a1ffc8e51f1bd0ba

Modified Files
--------------
doc/src/sgml/monitoring.sgml | 10 +++++++++-
src/backend/postmaster/pgstat.c | 6 ++++++
src/backend/storage/ipc/standby.c | 16 ++++++++++++----
src/include/pgstat.h | 2 ++
4 files changed, 29 insertions(+), 5 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Fujii Masao 2020-04-03 03:22:34 pgsql: Revert "Include information on buffer usage during planning phas
Previous Message Michael Paquier 2020-04-03 02:58:22 Re: pgsql: Include information on buffer usage during planning phase, in EX