forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit3a35ca5
committed
Cap wal_buffers to avoid a server crash when it's set very large.
It must be possible to multiply wal_buffers by XLOG_BLCKSZ withoutoverflowing int, or calculations in StartupXLOG will go badly wrongand crash the server. Avoid that by imposing a maximum value onwal_buffers. This will be just under 2GB, assuming the usual valuefor XLOG_BLCKSZ.Josh Berkus, per an analysis by Andrew Gierth.1 parent4424356 commit3a35ca5
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2096 | 2096 |
| |
2097 | 2097 |
| |
2098 | 2098 |
| |
2099 |
| - | |
| 2099 | + | |
2100 | 2100 |
| |
2101 | 2101 |
| |
2102 | 2102 |
| |
|
0 commit comments
Comments
(0)