forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commiteaf5027
committed
Move wal_buffers_full from PgStat_PendingWalStats to WalUsage
wal_buffers_full has been introduced in pg_stat_wal in8d9a935, assome information providing metrics for the tuning of the GUCwal_buffers. WalUsage has been introduced before that indf3b181.Moving this field is proving to be beneficial for several reasons:- This information can now be made available in more layers, providingmore granularity than just pg_stat_wal, on a per-query basis: EXPLAIN,pgss and VACUUM/ANALYZE logs.- A patch is under discussion to provide statistics for WAL at backendlevel, and this move simplifies a bit the handling of pendingstatistics. The remaining data in PgStat_PendingWalStats now relates towrite/sync counters and times, with equivalents present in pg_stat_io,that backend statistics are able to already track. So this should cutall the dependencies between PgStat_PendingWalStats and WAL stats atbackend level.As of this change, wal_buffers_full only shows in pg_stat_wal.Author: Bertrand DrouvotReviewed-by: Ilia EvdokimovDiscussion:https://postgr.es/m/Z6SOha5YFFgvpwQY@ip-10-97-1-34.eu-west-3.compute.internal1 parent6a2275b commiteaf5027
File tree
5 files changed
+5
-3
lines changed- src
- backend
- access/transam
- executor
- utils/activity
- include
- executor
5 files changed
+5
-3
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2093 | 2093 |
| |
2094 | 2094 |
| |
2095 | 2095 |
| |
2096 |
| - | |
| 2096 | + | |
2097 | 2097 |
| |
2098 | 2098 |
| |
2099 | 2099 |
| |
|
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
280 | 280 |
| |
281 | 281 |
| |
282 | 282 |
| |
| 283 | + | |
283 | 284 |
| |
284 | 285 |
| |
285 | 286 |
| |
| |||
288 | 289 |
| |
289 | 290 |
| |
290 | 291 |
| |
| 292 | + | |
291 | 293 |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
123 | 123 |
| |
124 | 124 |
| |
125 | 125 |
| |
126 |
| - | |
| 126 | + | |
127 | 127 |
| |
128 | 128 |
| |
129 | 129 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
53 | 53 |
| |
54 | 54 |
| |
55 | 55 |
| |
| 56 | + | |
56 | 57 |
| |
57 | 58 |
| |
58 | 59 |
| |
|
Lines changed: 0 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
495 | 495 |
| |
496 | 496 |
| |
497 | 497 |
| |
498 |
| - | |
499 | 498 |
| |
500 | 499 |
| |
501 | 500 |
| |
|
0 commit comments
Comments
(0)