forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitd4c3a6b
committed
Remove obsolete restriction on the range of log_rotation_size.
When syslogger.c was first written, we didn't want to assume thatall platforms have 64-bit ftello. But we've been assuming thatsince v13 (cf commit799d224), so let's use that in syslogger.cand allow log_rotation_size to range up to INT_MAX kilobytes.The old code effectively limited log_rotation_size to 2GB regardlessof platform. While nobody's complained, that doesn't seem too faraway from what might be thought reasonable these days.I noticed this while searching for instances of "1024L" in connectionwith commit041e8b9. These were the last such instances.(We still have instances of L-suffixed literals, but most of themare associated with wait intervals for pg_usleep or similar functions.I don't see any urgent reason to change that.)1 parent041e8b9 commitd4c3a6b
2 files changed
+9
-7
lines changedLines changed: 8 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
444 | 444 |
| |
445 | 445 |
| |
446 | 446 |
| |
447 |
| - | |
| 447 | + | |
448 | 448 |
| |
449 | 449 |
| |
450 | 450 |
| |
451 | 451 |
| |
452 | 452 |
| |
453 |
| - | |
| 453 | + | |
454 | 454 |
| |
455 | 455 |
| |
456 | 456 |
| |
457 | 457 |
| |
458 | 458 |
| |
459 |
| - | |
| 459 | + | |
460 | 460 |
| |
461 | 461 |
| |
462 | 462 |
| |
| |||
1183 | 1183 |
| |
1184 | 1184 |
| |
1185 | 1185 |
| |
1186 |
| - | |
1187 |
| - | |
1188 |
| - | |
| 1186 | + | |
| 1187 | + | |
| 1188 | + | |
| 1189 | + | |
| 1190 | + | |
1189 | 1191 |
| |
1190 | 1192 |
| |
1191 | 1193 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3299 | 3299 |
| |
3300 | 3300 |
| |
3301 | 3301 |
| |
3302 |
| - | |
| 3302 | + | |
3303 | 3303 |
| |
3304 | 3304 |
| |
3305 | 3305 |
| |
|
0 commit comments
Comments
(0)