forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitef719e7
committed
Stabilize pg_stat_io writes test
Counting writes only for io_context = 'normal' is unreliable, as backendsusing a buffer access strategy could flush all of the dirty buffers out fromunder the other backends and checkpointer. Change the test to count writes inany context. This achieves roughly the same coverage anyway.Reported-by: Justin Pryzby <pryzby@telsasoft.com>Author: Melanie Plageman <melanieplageman@gmail.com>Discussion:https://www.postgresql.org/message-id/ZAnWU8WbXEDjrfUE%40telsasoft.com1 parent7730ceb commitef719e7
2 files changed
+8
-9
lines changedLines changed: 4 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1137 | 1137 |
| |
1138 | 1138 |
| |
1139 | 1139 |
| |
| 1140 | + | |
| 1141 | + | |
| 1142 | + | |
1140 | 1143 |
| |
1141 | 1144 |
| |
1142 | 1145 |
| |
| |||
1155 | 1158 |
| |
1156 | 1159 |
| |
1157 | 1160 |
| |
1158 |
| - | |
1159 |
| - | |
1160 |
| - | |
1161 | 1161 |
| |
1162 | 1162 |
| |
1163 | 1163 |
| |
1164 | 1164 |
| |
1165 | 1165 |
| |
1166 |
| - | |
| 1166 | + | |
1167 | 1167 |
| |
1168 | 1168 |
| |
1169 | 1169 |
| |
|
Lines changed: 4 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
549 | 549 |
| |
550 | 550 |
| |
551 | 551 |
| |
| 552 | + | |
| 553 | + | |
| 554 | + | |
552 | 555 |
| |
553 | 556 |
| |
554 | 557 |
| |
| |||
558 | 561 |
| |
559 | 562 |
| |
560 | 563 |
| |
561 |
| - | |
562 |
| - | |
563 |
| - | |
564 | 564 |
| |
565 | 565 |
| |
566 | 566 |
| |
567 | 567 |
| |
568 | 568 |
| |
569 |
| - | |
570 |
| - | |
| 569 | + | |
571 | 570 |
| |
572 | 571 |
| |
573 | 572 |
| |
|
0 commit comments
Comments
(0)