Commit 0013ba2
committed
Add wait events for checkpoint delay mechanism.
When MyProc->delayChkptFlags is set to temporarily block phase
transitions in a concurrent checkpoint, the checkpointer enters a
sleep-poll loop to wait for the flag to be cleared. We should show that
as a wait event in the pg_stat_activity view.
Reviewed-by: Robert Haas <robertmhaas@gmail.com>
Reviewed-by: Michael Paquier <michael@paquier.xyz>
Discussion: https://postgr.es/m/CA%2BhUKGL7Whi8iwKbzkbn_1fixH3Yy8aAPz7mfq6Hpj7FeJrKMg%40mail.gmail.com1 parent 7e1f544 commit 0013ba2
File tree
2 files changed
+6
-0
lines changed- src/backend
- access/transam
- utils/activity
2 files changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6737 | 6737 | | |
6738 | 6738 | | |
6739 | 6739 | | |
| 6740 | + | |
6740 | 6741 | | |
| 6742 | + | |
6741 | 6743 | | |
6742 | 6744 | | |
6743 | 6745 | | |
| |||
6750 | 6752 | | |
6751 | 6753 | | |
6752 | 6754 | | |
| 6755 | + | |
6753 | 6756 | | |
| 6757 | + | |
6754 | 6758 | | |
6755 | 6759 | | |
6756 | 6760 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| 100 | + | |
| 101 | + | |
100 | 102 | | |
101 | 103 | | |
102 | 104 | | |
| |||
0 commit comments