forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit22f519c
committed
Fix bug introduced by microvacuum for GiST
Commit013ebc0 introduces microvacuum forGiST, deletetion of tuple marked LP_DEAD uses IndexPageMultiDelete whilerecovery code uses IndexPageTupleDelete in loop. This causes a differencein offset numbers of tuples to delete. Patch introduces usage ofIndexPageMultiDelete in GiST except gistplacetopage() where only one tuple isdeleted at once. That also slightly improve performance, becauseIndexPageMultiDelete is more effective.Patch changes WAL format, so bump wal page magic.Bug report from Jeff JanesDiagnostic and patch by Anastasia Lubennikova and me1 parent7aea8e4 commit22f519c
File tree
4 files changed
+11
-11
lines changed- src
- backend/access/gist
- include/access
4 files changed
+11
-11
lines changedLines changed: 5 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
466 | 466 |
| |
467 | 467 |
| |
468 | 468 |
| |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
469 | 474 |
| |
470 | 475 |
| |
471 | 476 |
| |
|
Lines changed: 4 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
208 | 208 |
| |
209 | 209 |
| |
210 | 210 |
| |
211 |
| - | |
212 |
| - | |
213 |
| - | |
214 |
| - | |
215 |
| - | |
| 211 | + | |
216 | 212 |
| |
217 | 213 |
| |
218 | 214 |
| |
219 | 215 |
| |
| 216 | + | |
| 217 | + | |
220 | 218 |
| |
221 | 219 |
| |
222 | 220 |
| |
223 | 221 |
| |
224 | 222 |
| |
225 | 223 |
| |
226 |
| - | |
227 |
| - | |
| 224 | + | |
228 | 225 |
| |
229 | 226 |
| |
230 | 227 |
| |
|
Lines changed: 1 addition & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
83 | 83 |
| |
84 | 84 |
| |
85 | 85 |
| |
86 |
| - | |
87 | 86 |
| |
88 | 87 |
| |
89 | 88 |
| |
90 | 89 |
| |
91 |
| - | |
92 |
| - | |
| 90 | + | |
93 | 91 |
| |
94 | 92 |
| |
95 | 93 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
31 | 31 |
| |
32 | 32 |
| |
33 | 33 |
| |
34 |
| - | |
| 34 | + | |
35 | 35 |
| |
36 | 36 |
| |
37 | 37 |
| |
|
0 commit comments
Comments
(0)