forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit8068676
committed
Avoid overflow in MaybeRemoveOldWalSummaries().
This commit limits the maximum value of wal_summary_keep_time toINT_MAX / SECS_PER_MINUTE to avoid overflow when it is converted toseconds. In passing, use the HOURS_PER_DAY, MINS_PER_HOUR, andSECS_PER_MINUTE macros in the code for this GUC instead of hard-coding those values.Discussion:https://postgr.es/m/20240314210010.GA3056455%40nathanxps131 parent9acae56 commit8068676
2 files changed
+4
-4
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
140 | 140 |
| |
141 | 141 |
| |
142 | 142 |
| |
143 |
| - | |
| 143 | + | |
144 | 144 |
| |
145 | 145 |
| |
146 | 146 |
| |
| |||
1480 | 1480 |
| |
1481 | 1481 |
| |
1482 | 1482 |
| |
1483 |
| - | |
| 1483 | + | |
1484 | 1484 |
| |
1485 | 1485 |
| |
1486 | 1486 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3293 | 3293 |
| |
3294 | 3294 |
| |
3295 | 3295 |
| |
3296 |
| - | |
| 3296 | + | |
3297 | 3297 |
| |
3298 |
| - | |
| 3298 | + | |
3299 | 3299 |
| |
3300 | 3300 |
| |
3301 | 3301 |
| |
|
0 commit comments
Comments
(0)