forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit17cc5f6
committed
Fix inconsistent reporting of checkpointer stats.
Previously, the pg_stat_checkpointer view and the checkpoint completionlog message could show different numbers for buffers writtenduring checkpoints. The view only counted shared buffers,while the log message included both shared and SLRU buffers,causing inconsistencies.This commit resolves the issue by updating both the view and the log messageto separately report shared and SLRU buffers written during checkpoints.A new slru_written column is added to the pg_stat_checkpointer viewto track SLRU buffers, while the existing buffers_written column nowtracks only shared buffers. This change would help users distinguishbetween the two types of buffers, in the pg_stat_checkpointer view andthe checkpoint complete log message, respectively.Bump catalog version.Author: Nitin JadhavReviewed-by: Bharath Rupireddy, Michael Paquier, Kyotaro Horiguchi, Robert HaasReviewed-by: Andres Freund, vignesh C, Fujii MasaoDiscussion:https://postgr.es/m/CAMm1aWb18EpT0whJrjG+-nyhNouXET6ZUw0pNYYAe+NezpvsAA@mail.gmail.com1 parent506eede commit17cc5f6
File tree
11 files changed
+47
-16
lines changed- doc/src/sgml
- src
- backend
- access/transam
- catalog
- utils
- activity
- adt
- include
- access
- catalog
- test/regress/expected
11 files changed
+47
-16
lines changedLines changed: 10 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3127 | 3127 |
| |
3128 | 3128 |
| |
3129 | 3129 |
| |
3130 |
| - | |
| 3130 | + | |
| 3131 | + | |
| 3132 | + | |
| 3133 | + | |
| 3134 | + | |
| 3135 | + | |
| 3136 | + | |
| 3137 | + | |
| 3138 | + | |
| 3139 | + | |
3131 | 3140 |
| |
3132 | 3141 |
| |
3133 | 3142 |
| |
|
Lines changed: 5 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
716 | 716 |
| |
717 | 717 |
| |
718 | 718 |
| |
719 |
| - | |
| 719 | + | |
720 | 720 |
| |
721 |
| - | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
722 | 725 |
| |
723 | 726 |
| |
724 | 727 |
| |
|
Lines changed: 14 additions & 12 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6727 | 6727 |
| |
6728 | 6728 |
| |
6729 | 6729 |
| |
6730 |
| - | |
6731 |
| - | |
6732 |
| - | |
6733 |
| - | |
6734 |
| - | |
6735 |
| - | |
| 6730 | + | |
| 6731 | + | |
| 6732 | + | |
| 6733 | + | |
| 6734 | + | |
| 6735 | + | |
6736 | 6736 |
| |
6737 | 6737 |
| |
| 6738 | + | |
6738 | 6739 |
| |
6739 | 6740 |
| |
6740 | 6741 |
| |
| |||
6750 | 6751 |
| |
6751 | 6752 |
| |
6752 | 6753 |
| |
6753 |
| - | |
6754 |
| - | |
6755 |
| - | |
6756 |
| - | |
6757 |
| - | |
6758 |
| - | |
| 6754 | + | |
| 6755 | + | |
| 6756 | + | |
| 6757 | + | |
| 6758 | + | |
| 6759 | + | |
6759 | 6760 |
| |
6760 | 6761 |
| |
| 6762 | + | |
6761 | 6763 |
| |
6762 | 6764 |
| |
6763 | 6765 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1145 | 1145 |
| |
1146 | 1146 |
| |
1147 | 1147 |
| |
| 1148 | + | |
1148 | 1149 |
| |
1149 | 1150 |
| |
1150 | 1151 |
| |
|
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
56 | 56 |
| |
57 | 57 |
| |
58 | 58 |
| |
| 59 | + | |
59 | 60 |
| |
60 | 61 |
| |
61 | 62 |
| |
| |||
135 | 136 |
| |
136 | 137 |
| |
137 | 138 |
| |
| 139 | + | |
138 | 140 |
| |
139 | 141 |
|
Lines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1221 | 1221 |
| |
1222 | 1222 |
| |
1223 | 1223 |
| |
| 1224 | + | |
| 1225 | + | |
| 1226 | + | |
| 1227 | + | |
| 1228 | + | |
| 1229 | + | |
1224 | 1230 |
| |
1225 | 1231 |
| |
1226 | 1232 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
167 | 167 |
| |
168 | 168 |
| |
169 | 169 |
| |
| 170 | + | |
170 | 171 |
| |
171 | 172 |
| |
172 | 173 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
57 | 57 |
| |
58 | 58 |
| |
59 | 59 |
| |
60 |
| - | |
| 60 | + | |
61 | 61 |
| |
62 | 62 |
|
Lines changed: 5 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5847 | 5847 |
| |
5848 | 5848 |
| |
5849 | 5849 |
| |
| 5850 | + | |
| 5851 | + | |
| 5852 | + | |
| 5853 | + | |
| 5854 | + | |
5850 | 5855 |
| |
5851 | 5856 |
| |
5852 | 5857 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
301 | 301 |
| |
302 | 302 |
| |
303 | 303 |
| |
| 304 | + | |
304 | 305 |
| |
305 | 306 |
| |
306 | 307 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1831 | 1831 |
| |
1832 | 1832 |
| |
1833 | 1833 |
| |
| 1834 | + | |
1834 | 1835 |
| |
1835 | 1836 |
| |
1836 | 1837 |
| |
|
0 commit comments
Comments
(0)