mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
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
This commit is contained in:
@@ -1346,7 +1346,7 @@ postgres 27093 0.0 0.0 30096 2752 ? Ss 11:34 0:00 postgres: ser
|
||||
<entry>Waiting in an extension.</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry morerows="38"><literal>IPC</literal></entry>
|
||||
<entry morerows="40"><literal>IPC</literal></entry>
|
||||
<entry><literal>BackupWaitWalArchive</literal></entry>
|
||||
<entry>Waiting for WAL files required for the backup to be successfully archived.</entry>
|
||||
</row>
|
||||
@@ -1482,6 +1482,14 @@ postgres 27093 0.0 0.0 30096 2752 ? Ss 11:34 0:00 postgres: ser
|
||||
<entry><literal>Promote</literal></entry>
|
||||
<entry>Waiting for standby promotion.</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><literal>RecoveryConflictSnapshot</literal></entry>
|
||||
<entry>Waiting for recovery conflict resolution on a vacuum cleanup.</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><literal>RecoveryConflictTablespace</literal></entry>
|
||||
<entry>Waiting for recovery conflict resolution on dropping tablespace.</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><literal>RecoveryPause</literal></entry>
|
||||
<entry>Waiting for recovery to be resumed.</entry>
|
||||
|
Reference in New Issue
Block a user