forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit9c32e4c

Amit Kapila
Clear the local map when not used.
After commitb0eaa4c, we use a local map of pages to find the requiredspace for small relations. We do clear this map when we have found a blockwith enough free space, when we extend the relation, or on transactionabort so that it can be used next time. However, we miss to clear it whenwe didn't find any pages to try from the map which leads to an assertionfailure when we later tried to use it after relation extension.In the passing, I have improved some comments in this area.Reported-by: Tom Lane based on buildfarm resultsAuthor: Amit KapilaReviewed-by: John NaylorTested-by: Kuntal GhoshDiscussion:https://postgr.es/m/32368.1551114120@sss.pgh.pa.us1 parent0f3cdf8 commit9c32e4c
2 files changed
+19
-5
lines changedLines changed: 1 addition & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
675 | 675 |
| |
676 | 676 |
| |
677 | 677 |
| |
678 |
| - | |
679 |
| - | |
680 |
| - | |
681 |
| - | |
| 678 | + | |
682 | 679 |
| |
683 | 680 |
| |
684 | 681 |
| |
|
Lines changed: 18 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
97 | 97 |
| |
98 | 98 |
| |
99 | 99 |
| |
100 |
| - | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
101 | 110 |
| |
102 | 111 |
| |
103 | 112 |
| |
| |||
1175 | 1184 |
| |
1176 | 1185 |
| |
1177 | 1186 |
| |
| 1187 | + | |
| 1188 | + | |
| 1189 | + | |
| 1190 | + | |
| 1191 | + | |
| 1192 | + | |
| 1193 | + | |
| 1194 | + | |
1178 | 1195 |
| |
1179 | 1196 |
|
0 commit comments
Comments
(0)