forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit0a64b45
committed
Fix handling of non-upgraded B-tree metapages
857f9c3 bumps B-tree metapage version while upgrade is performed "on the fly"when needed. However, some asserts fired when old version metapage wascached to rel->rd_amcache. Despite new metadata fields are never used fromrel->rd_amcache, that needs to be fixed. This patch introduces metadataupgrade during its caching, which fills unavailable fields with their defaultvalues. contrib/pageinspect is also patched to handle non-upgraded metapagesin the same way.Author: Alexander Korotkov1 parent01b88b4 commit0a64b45
File tree
2 files changed
+56
-8
lines changed- contrib/pageinspect
- src/backend/access/nbtree
2 files changed
+56
-8
lines changedLines changed: 15 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
555 | 555 |
| |
556 | 556 |
| |
557 | 557 |
| |
558 |
| - | |
559 |
| - | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
560 | 573 |
| |
561 | 574 |
| |
562 | 575 |
| |
|
Lines changed: 41 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
33 | 33 |
| |
34 | 34 |
| |
35 | 35 |
| |
| 36 | + | |
36 | 37 |
| |
37 | 38 |
| |
38 | 39 |
| |
| |||
105 | 106 |
| |
106 | 107 |
| |
107 | 108 |
| |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
108 | 147 |
| |
109 | 148 |
| |
110 | 149 |
| |
| |||
403 | 442 |
| |
404 | 443 |
| |
405 | 444 |
| |
406 |
| - | |
407 |
| - | |
408 |
| - | |
| 445 | + | |
409 | 446 |
| |
410 | 447 |
| |
411 | 448 |
| |
| |||
604 | 641 |
| |
605 | 642 |
| |
606 | 643 |
| |
607 |
| - | |
608 |
| - | |
609 |
| - | |
| 644 | + | |
610 | 645 |
| |
611 | 646 |
| |
612 | 647 |
| |
|
0 commit comments
Comments
(0)