forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit6130208
committed
Avoid useless palloc during transaction commit
We can allocate the initial relations-to-drop array when first needed,instead of at function entry; this avoids allocating it when thefunction is not going to do anything, which is most of the time.Backpatch to 9.3, where this behavior was introduced by commit279628a.There's more that could be done here, such as possible reworking of thecode to avoid having to palloc anything, but that doesn't sound asbackpatchable as this relatively minor change.Per complaint from Noah Misch in20131031145234.GA621493@tornado.leadboat.com1 parentc32afe5 commit6130208
1 file changed
+11
-7
lines changedLines changed: 11 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
314 | 314 |
| |
315 | 315 |
| |
316 | 316 |
| |
317 |
| - | |
318 |
| - | |
| 317 | + | |
| 318 | + | |
319 | 319 |
| |
320 | 320 |
| |
321 | 321 |
| |
| |||
340 | 340 |
| |
341 | 341 |
| |
342 | 342 |
| |
343 |
| - | |
344 |
| - | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
345 | 350 |
| |
346 | 351 |
| |
347 | 352 |
| |
| |||
361 | 366 |
| |
362 | 367 |
| |
363 | 368 |
| |
364 |
| - | |
365 |
| - | |
366 |
| - | |
367 | 369 |
| |
| 370 | + | |
| 371 | + | |
368 | 372 |
| |
369 | 373 |
| |
370 | 374 |
| |
|
0 commit comments
Comments
(0)