Add wait events for recovery conflicts.

Fujii Masao <fujii@postgresql.org>

Commit: 18808f8c893d4f425f2d21b2a1ffc8e51f1bd0ba
Author: Fujii Masao <fujii@postgresql.org>
Date: 2020-04-03T03:15:56Z
Releases: 13.0
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

Files

PathChange+/−
doc/src/sgml/monitoring.sgml modified +9 −1
src/backend/postmaster/pgstat.c modified +6 −0
src/backend/storage/ipc/standby.c modified +12 −4
src/include/pgstat.h modified +2 −0

Documentation touched

Discussion