- Notifications
You must be signed in to change notification settings - Fork5
Commitcd52e4a
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 parent9d7d0e6 commitcd52e4a
1 file changed
+1
-1
lines changed| 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)