diff options
author | Fujii Masao <fujii@postgresql.org> | 2020-04-03 12:15:56 +0900 |
---|---|---|
committer | Fujii Masao <fujii@postgresql.org> | 2020-04-03 12:15:56 +0900 |
commit | 18808f8c893d4f425f2d21b2a1ffc8e51f1bd0ba (patch) | |
tree | d3a4609106e7d0b9a1619e0a6dd45a89b5e8f5d4 /src/backend/commands/constraint.c | |
parent | 9d8ef98800bd291de145fb1be41f0868546e02ab (diff) | |
download | postgresql-18808f8c893d4f425f2d21b2a1ffc8e51f1bd0ba.tar.gz postgresql-18808f8c893d4f425f2d21b2a1ffc8e51f1bd0ba.zip |
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
Diffstat (limited to 'src/backend/commands/constraint.c')
0 files changed, 0 insertions, 0 deletions