forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit6d2fd66
committed
Push dedicated BumpBlocks to the tail of the blocks list
BumpContext relies on using the head block from its 'blocks' field touse as the current block to allocate new chunks to. When we receive anallocation request larger than allocChunkLimit, we place these chunks ona new dedicated block and, until now, we pushed the block onto the*head* of the 'blocks' list.This behavior caused the previous bump block to no longer be availablefor new normal-sized (non-large) allocations and would result in blocksonly being partially filled if a large allocation request arrived beforethe block became full.Here adjust the code to push these dedicated blocks onto the *tail* ofthe blocks list so that the head block remains intact and available tobe used by normal allocation request sizes until it becomes full.In passing, make the elog(ERROR) calls for the unsupported callbacksconsistent. Likewise for the header comments for those functions.Discussion:https://postgr.es/m/CAApHDvp9___r-ayJj0nZ6GD3MeCGwGZ0_6ZptWpwj+zqHtmwCw@mail.gmail.comDiscussion:https://postgr.es/m/CAApHDvqerXpzUnuDQfUEi3DZA+9=Ud9WSt3ruxN5b6PcOosx2g@mail.gmail.com1 parent2ea5d8b commit6d2fd66
File tree
2 files changed
+11
-8
lines changed- src
- backend/utils/mmgr
- test/regress/expected
2 files changed
+11
-8
lines changedLines changed: 10 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
342 | 342 |
| |
343 | 343 |
| |
344 | 344 |
| |
345 |
| - | |
346 |
| - | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
347 | 351 |
| |
348 | 352 |
| |
349 | 353 |
| |
| |||
612 | 616 |
| |
613 | 617 |
| |
614 | 618 |
| |
615 |
| - | |
| 619 | + | |
616 | 620 |
| |
617 | 621 |
| |
618 | 622 |
| |
| |||
638 | 642 |
| |
639 | 643 |
| |
640 | 644 |
| |
641 |
| - | |
642 |
| - | |
643 |
| - | |
644 |
| - | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
645 | 648 |
| |
646 | 649 |
| |
647 | 650 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
47 | 47 |
| |
48 | 48 |
| |
49 | 49 |
| |
50 |
| - | |
| 50 | + | |
51 | 51 |
| |
52 | 52 |
| |
53 | 53 |
| |
|
0 commit comments
Comments
(0)