forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitd780d7c
committed
Change data type of counters in BufferUsage and WalUsage from long to int64.
Previously long was used as the data type for some counters in BufferUsageand WalUsage. But long is only four byte, e.g., on Windows, and it's entirelypossible to wrap a four byte counter. For example, emitting more thanfour billion WAL records in one transaction isn't actually particularly rare.To avoid the overflows of those counters, this commit changes the data typeof them from long to int64.Suggested-by: Andres FreundAuthor: Masahiro IkedaReviewed-by: Fujii MasaoDiscussion:https://postgr.es/m/20201221211650.k7b53tcnadrciqjo@alap3.anarazel.deDiscussion:https://postgr.es/m/af0964ac-7080-1984-dc23-513754987716@oss.nttdata.com1 parent0bf6293 commitd780d7c
File tree
3 files changed
+39
-39
lines changed- src
- backend
- access/heap
- commands
- include/executor
3 files changed
+39
-39
lines changedLines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
830 | 830 |
| |
831 | 831 |
| |
832 | 832 |
| |
833 |
| - | |
834 |
| - | |
835 |
| - | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
836 | 836 |
| |
837 | 837 |
| |
838 | 838 |
| |
|
Lines changed: 24 additions & 24 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3526 | 3526 |
| |
3527 | 3527 |
| |
3528 | 3528 |
| |
3529 |
| - | |
3530 |
| - | |
| 3529 | + | |
| 3530 | + | |
3531 | 3531 |
| |
3532 |
| - | |
3533 |
| - | |
| 3532 | + | |
| 3533 | + | |
3534 | 3534 |
| |
3535 |
| - | |
3536 |
| - | |
| 3535 | + | |
| 3536 | + | |
3537 | 3537 |
| |
3538 |
| - | |
3539 |
| - | |
| 3538 | + | |
| 3539 | + | |
3540 | 3540 |
| |
3541 | 3541 |
| |
3542 | 3542 |
| |
3543 | 3543 |
| |
3544 | 3544 |
| |
3545 | 3545 |
| |
3546 | 3546 |
| |
3547 |
| - | |
3548 |
| - | |
| 3547 | + | |
| 3548 | + | |
3549 | 3549 |
| |
3550 |
| - | |
3551 |
| - | |
| 3550 | + | |
| 3551 | + | |
3552 | 3552 |
| |
3553 |
| - | |
3554 |
| - | |
| 3553 | + | |
| 3554 | + | |
3555 | 3555 |
| |
3556 |
| - | |
3557 |
| - | |
| 3556 | + | |
| 3557 | + | |
3558 | 3558 |
| |
3559 | 3559 |
| |
3560 | 3560 |
| |
3561 | 3561 |
| |
3562 | 3562 |
| |
3563 | 3563 |
| |
3564 | 3564 |
| |
3565 |
| - | |
3566 |
| - | |
| 3565 | + | |
| 3566 | + | |
3567 | 3567 |
| |
3568 |
| - | |
3569 |
| - | |
| 3568 | + | |
| 3569 | + | |
3570 | 3570 |
| |
3571 | 3571 |
| |
3572 | 3572 |
| |
| |||
3638 | 3638 |
| |
3639 | 3639 |
| |
3640 | 3640 |
| |
3641 |
| - | |
3642 |
| - | |
| 3641 | + | |
| 3642 | + | |
3643 | 3643 |
| |
3644 |
| - | |
3645 |
| - | |
| 3644 | + | |
| 3645 | + | |
3646 | 3646 |
| |
3647 | 3647 |
| |
3648 | 3648 |
| |
|
Lines changed: 12 additions & 12 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
18 | 18 |
| |
19 | 19 |
| |
20 | 20 |
| |
21 |
| - | |
22 |
| - | |
23 |
| - | |
24 |
| - | |
25 |
| - | |
26 |
| - | |
27 |
| - | |
28 |
| - | |
29 |
| - | |
30 |
| - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
31 | 31 |
| |
32 | 32 |
| |
33 | 33 |
| |
34 | 34 |
| |
35 | 35 |
| |
36 | 36 |
| |
37 |
| - | |
38 |
| - | |
| 37 | + | |
| 38 | + | |
39 | 39 |
| |
40 | 40 |
| |
41 | 41 |
| |
|
0 commit comments
Comments
(0)