- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit369342c
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 parent158e3bc commit369342c
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2215 | 2215 |
| |
2216 | 2216 |
| |
2217 | 2217 |
| |
2218 |
| - | |
| 2218 | + | |
2219 | 2219 |
| |
2220 | 2220 |
| |
2221 | 2221 |
| |
|
0 commit comments
Comments
(0)