forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit7215efd
committed
Fix rare dsa_allocate() failures due to freepage.c corruption.
In a corner case, a btree page was allocated during a clean-up operationthat could cause the tracking of the largest contiguous span of freespace to get out of whack. That was supposed to be prevented by the useof the "soft" flag to avoid allocating internal pages during incidentalclean-up work, but the flag was ignored in the case where the FPM waspromoted from singleton format to btree format. Repair.Remove an obsolete comment in passing.Back-patch to 10, where freepage.c arrived (as support for dsa.c).Author: Robert HaasDiagnosed-by: Thomas Munro and Robert HaasReported-by: Justin Pryzby, Rick Otten, Sand Stone, Arne Roland and othersDiscussion:https://postgr.es/m/CAMAYy4%2Bw3NTBM5JLWFi8twhWK4%3Dk_5L4nV5%2BbYDSPu8r4b97Zg%40mail.gmail.com1 parent75c4614 commit7215efd
1 file changed
+3
-3
lines changedLines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1470 | 1470 |
| |
1471 | 1471 |
| |
1472 | 1472 |
| |
1473 |
| - | |
1474 |
| - | |
1475 |
| - | |
| 1473 | + | |
1476 | 1474 |
| |
1477 | 1475 |
| |
1478 | 1476 |
| |
| |||
1526 | 1524 |
| |
1527 | 1525 |
| |
1528 | 1526 |
| |
| 1527 | + | |
| 1528 | + | |
1529 | 1529 |
| |
1530 | 1530 |
| |
1531 | 1531 |
| |
|
0 commit comments
Comments
(0)