forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit59af8d4
committed
Pad XLogReaderState's per-buffer data_bufsz more aggressively.
Originally, we palloc'd this buffer just barely big enough to hold thelargest xlog backup block seen so far. We now MAXALIGN the palloc size.The original coding could result in many repeated palloc cycles, in theworst case where we see a series ofgradually larger xlog records. Weameliorate that similarly to8735978by imposing a minimum buffer size of BLCKSZ.Discussion:https://postgr.es/m/E1eHa4J-0006hI-Q8@gemulon.postgresql.org1 parentd5f965c commit59af8d4
1 file changed
+7
-1
lines changedLines changed: 7 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1264 | 1264 |
| |
1265 | 1265 |
| |
1266 | 1266 |
| |
1267 |
| - | |
| 1267 | + | |
| 1268 | + | |
| 1269 | + | |
| 1270 | + | |
| 1271 | + | |
| 1272 | + | |
| 1273 | + | |
1268 | 1274 |
| |
1269 | 1275 |
| |
1270 | 1276 |
| |
|
0 commit comments
Comments
(0)