forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit704261e
committed
Improve IO accounting for temp relation writes
Both pgstat_database and pgBufferUsage count IO timing for reads of temporaryrelation blocks into local buffers. However, both failed to count write IOtiming for flushes of dirty local buffers. Fix.Additionally, FlushRelationBuffers() seems to have omitted counting writeIO (both count and timing) stats for both pgstat_database andpgBufferUsage. Fix.Author: Melanie Plageman <melanieplageman@gmail.com>Reviewed-by: Andres Freund <andres@anarazel.de>Discussion:https://postgr.es/m/20230321023451.7rzy4kjj2iktrg2r%40awork3.anarazel.de1 parentbf5a894 commit704261e
2 files changed
+33
-0
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4062 | 4062 |
| |
4063 | 4063 |
| |
4064 | 4064 |
| |
| 4065 | + | |
| 4066 | + | |
4065 | 4067 |
| |
4066 | 4068 |
| |
4067 | 4069 |
| |
| |||
4087 | 4089 |
| |
4088 | 4090 |
| |
4089 | 4091 |
| |
| 4092 | + | |
| 4093 | + | |
| 4094 | + | |
| 4095 | + | |
| 4096 | + | |
4090 | 4097 |
| |
4091 | 4098 |
| |
4092 | 4099 |
| |
| |||
4098 | 4105 |
| |
4099 | 4106 |
| |
4100 | 4107 |
| |
| 4108 | + | |
| 4109 | + | |
| 4110 | + | |
| 4111 | + | |
| 4112 | + | |
| 4113 | + | |
| 4114 | + | |
| 4115 | + | |
| 4116 | + | |
| 4117 | + | |
4101 | 4118 |
| |
4102 | 4119 |
| |
4103 | 4120 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
176 | 176 |
| |
177 | 177 |
| |
178 | 178 |
| |
| 179 | + | |
| 180 | + | |
179 | 181 |
| |
180 | 182 |
| |
181 | 183 |
| |
| |||
239 | 241 |
| |
240 | 242 |
| |
241 | 243 |
| |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
242 | 249 |
| |
243 | 250 |
| |
244 | 251 |
| |
| |||
252 | 259 |
| |
253 | 260 |
| |
254 | 261 |
| |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
255 | 271 |
| |
256 | 272 |
| |
257 | 273 |
| |
|
0 commit comments
Comments
(0)