forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitf47b5e1
committed
Remove btree page items after page unlink
Currently, page unlink leaves remaining items "as is", but replay ofcorresponding WAL-record re-initializes page leaving it with no items.For the sake of consistency, this commit makes primary delete all the itemsduring page unlink as well.Thanks to this change, we now don't mask contents of deleted btree page forWAL consistency checking.Discussion:https://postgr.es/m/CAPpHfdt_OTyQpXaPJcWzV2N-LNeNJseNB-K_A66qG%3DL518VTFw%40mail.gmail.comAuthor: Alexander KorotkovReviewed-by: Peter Geoghegan1 parent0f76294 commitf47b5e1
File tree
3 files changed
+12
-14
lines changed- contrib/amcheck
- src/backend/access/nbtree
3 files changed
+12
-14
lines changedLines changed: 2 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2864 | 2864 |
| |
2865 | 2865 |
| |
2866 | 2866 |
| |
2867 |
| - | |
2868 |
| - | |
2869 |
| - | |
2870 |
| - | |
2871 |
| - | |
| 2867 | + | |
| 2868 | + | |
2872 | 2869 |
| |
2873 | 2870 |
| |
2874 | 2871 |
| |
|
Lines changed: 9 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2058 | 2058 |
| |
2059 | 2059 |
| |
2060 | 2060 |
| |
| 2061 | + | |
2061 | 2062 |
| |
2062 | 2063 |
| |
2063 | 2064 |
| |
| |||
2327 | 2328 |
| |
2328 | 2329 |
| |
2329 | 2330 |
| |
| 2331 | + | |
| 2332 | + | |
| 2333 | + | |
| 2334 | + | |
| 2335 | + | |
| 2336 | + | |
| 2337 | + | |
| 2338 | + | |
2330 | 2339 |
| |
2331 | 2340 |
| |
2332 | 2341 |
| |
|
Lines changed: 1 addition & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1051 | 1051 |
| |
1052 | 1052 |
| |
1053 | 1053 |
| |
1054 |
| - | |
1055 |
| - | |
1056 |
| - | |
1057 |
| - | |
1058 |
| - | |
1059 |
| - | |
1060 |
| - | |
1061 |
| - | |
1062 |
| - | |
| 1054 | + | |
1063 | 1055 |
| |
1064 | 1056 |
| |
1065 | 1057 |
| |
|
0 commit comments
Comments
(0)