- Notifications
You must be signed in to change notification settings - Fork5.2k
Commitf9a09aa
committed
Add wal_fpi_bytes to pg_stat_wal and pg_stat_get_backend_wal()
This new counter, called "wal_fpi_bytes", tracks the total amount inbytes of full page images (FPIs) generated in WAL. This data becomesavailable globally via pg_stat_wal, and for backend statistics viapg_stat_get_backend_wal().Previously, this information could only be retrieved with pg_waldump orpg_walinspect, which may not be available depending on the environment,and are expensive to execute. It offers hints about how much FPIsimpact the WAL generated, which could be a large percentage for someworkloads, as well as the effects of wal_compression or page holes.Bump catalog version.Bump PGSTAT_FILE_FORMAT_ID, due to the addition of wal_fpi_bytes inPgStat_WalCounters.Author: Shinya Kato <shinya11.kato@gmail.com>Reviewed-by: Michael Paquier <michael@paquier.xyz>Discussion:https://postgr.es/m/CAOzEurQtZEAfg6P0kU3Wa-f9BWQOi0RzJEMPN56wNTOmJLmfaQ@mail.gmail.com1 parent3e8e055 commitf9a09aa
File tree
12 files changed
+46
-15
lines changed- doc/src/sgml
- src
- backend
- access/transam
- catalog
- executor
- utils
- activity
- adt
- include
- catalog
- executor
- test/regress/expected
12 files changed
+46
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3323 | 3323 | | |
3324 | 3324 | | |
3325 | 3325 | | |
| 3326 | + | |
| 3327 | + | |
| 3328 | + | |
| 3329 | + | |
| 3330 | + | |
| 3331 | + | |
| 3332 | + | |
| 3333 | + | |
| 3334 | + | |
3326 | 3335 | | |
3327 | 3336 | | |
3328 | 3337 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| 43 | + | |
42 | 44 | | |
43 | 45 | | |
44 | 46 | | |
| |||
796 | 798 | | |
797 | 799 | | |
798 | 800 | | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
799 | 805 | | |
800 | 806 | | |
801 | 807 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1221 | 1221 | | |
1222 | 1222 | | |
1223 | 1223 | | |
| 1224 | + | |
1224 | 1225 | | |
1225 | 1226 | | |
1226 | 1227 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
| 283 | + | |
283 | 284 | | |
284 | 285 | | |
285 | 286 | | |
| |||
289 | 290 | | |
290 | 291 | | |
291 | 292 | | |
| 293 | + | |
292 | 294 | | |
293 | 295 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
| 255 | + | |
255 | 256 | | |
256 | 257 | | |
257 | 258 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| 124 | + | |
124 | 125 | | |
125 | 126 | | |
126 | 127 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1637 | 1637 | | |
1638 | 1638 | | |
1639 | 1639 | | |
1640 | | - | |
| 1640 | + | |
1641 | 1641 | | |
1642 | 1642 | | |
1643 | 1643 | | |
| |||
1651 | 1651 | | |
1652 | 1652 | | |
1653 | 1653 | | |
1654 | | - | |
| 1654 | + | |
| 1655 | + | |
| 1656 | + | |
1655 | 1657 | | |
1656 | | - | |
| 1658 | + | |
1657 | 1659 | | |
1658 | 1660 | | |
1659 | 1661 | | |
| |||
1669 | 1671 | | |
1670 | 1672 | | |
1671 | 1673 | | |
1672 | | - | |
| 1674 | + | |
| 1675 | + | |
| 1676 | + | |
| 1677 | + | |
| 1678 | + | |
| 1679 | + | |
| 1680 | + | |
1673 | 1681 | | |
1674 | 1682 | | |
1675 | | - | |
| 1683 | + | |
1676 | 1684 | | |
1677 | | - | |
| 1685 | + | |
1678 | 1686 | | |
1679 | 1687 | | |
1680 | 1688 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6029 | 6029 | | |
6030 | 6030 | | |
6031 | 6031 | | |
6032 | | - | |
6033 | | - | |
6034 | | - | |
| 6032 | + | |
| 6033 | + | |
| 6034 | + | |
6035 | 6035 | | |
6036 | 6036 | | |
6037 | 6037 | | |
6038 | 6038 | | |
6039 | | - | |
6040 | | - | |
6041 | | - | |
| 6039 | + | |
| 6040 | + | |
| 6041 | + | |
6042 | 6042 | | |
6043 | 6043 | | |
6044 | 6044 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
| |||
0 commit comments
Comments
(0)