forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit44b550e
committed
Fix handling of empty uncompressed posting list pages in GIN
PostgreSQL 9.4 introduces posting list compression in GIN. This featuresupports online upgrade, so that after pg_upgrade uncompressed postinglists are compressed on-the-fly. Underlying code appears to alwaysexpect at least one item on uncompressed posting list page. But therecould be completely empty pages, because VACUUM never deletes leftmostand rightmost pages from posting trees. This commit fixes that.Reported-by: Sivasubramanian RamasubramanianDiscussion:https://postgr.es/m/1531867212836.63354%40amazon.comAuthor: Sivasubramanian Ramasubramanian, Alexander KorotkovBackpatch-through: 9.41 parent8b1d268 commit44b550e
2 files changed
+33
-14
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1392 | 1392 |
| |
1393 | 1393 |
| |
1394 | 1394 |
| |
1395 |
| - | |
| 1395 | + | |
| 1396 | + | |
1396 | 1397 |
| |
1397 | 1398 |
| |
1398 | 1399 |
| |
1399 | 1400 |
| |
1400 | 1401 |
| |
1401 | 1402 |
| |
1402 | 1403 |
| |
1403 |
| - | |
| 1404 | + | |
| 1405 | + | |
| 1406 | + | |
1404 | 1407 |
| |
1405 |
| - | |
1406 |
| - | |
1407 |
| - | |
1408 |
| - | |
1409 |
| - | |
| 1408 | + | |
| 1409 | + | |
| 1410 | + | |
| 1411 | + | |
| 1412 | + | |
1410 | 1413 |
| |
1411 |
| - | |
| 1414 | + | |
| 1415 | + | |
1412 | 1416 |
| |
1413 | 1417 |
| |
1414 | 1418 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
151 | 151 |
| |
152 | 152 |
| |
153 | 153 |
| |
154 |
| - | |
155 | 154 |
| |
156 |
| - | |
157 |
| - | |
158 |
| - | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
159 | 170 |
| |
160 |
| - | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
161 | 177 |
| |
162 |
| - | |
163 | 178 |
| |
164 | 179 |
| |
165 | 180 |
| |
|
0 commit comments
Comments
(0)