- Notifications
You must be signed in to change notification settings - Fork4.9k
Commitb6e3798
committed
Limit values of archive_timeout, post_auth_delay, auth_delay.milliseconds.
The previous definitions of these GUC variables allowed them to rangeup to INT_MAX, but in point of fact the underlying code would sufferoverflows or other errors with large values. Reduce the maximum valuesto something that won't misbehave. There's no apparent value in workingharder than this, since very large delays aren't sensible for any ofthese. (Note: the risk with archive_timeout is that if we're latechecking the state, the timestamp difference it's being compared tomight overflow. So we need some amount of slop; the choice of INT_MAX/2is arbitrary.)Per followup investigation of bug #7670. Although this isn't a verysignificant fix, might as well back-patch.1 parentd038966 commitb6e3798
2 files changed
+3
-3
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
59 | 59 |
| |
60 | 60 |
| |
61 | 61 |
| |
62 |
| - | |
| 62 | + | |
63 | 63 |
| |
64 | 64 |
| |
65 | 65 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1466 | 1466 |
| |
1467 | 1467 |
| |
1468 | 1468 |
| |
1469 |
| - | |
| 1469 | + | |
1470 | 1470 |
| |
1471 | 1471 |
| |
1472 | 1472 |
| |
| |||
1476 | 1476 |
| |
1477 | 1477 |
| |
1478 | 1478 |
| |
1479 |
| - | |
| 1479 | + | |
1480 | 1480 |
| |
1481 | 1481 |
| |
1482 | 1482 |
| |
|
0 commit comments
Comments
(0)