- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit6526d07
committed
Relax assertion in finding correct GiST parent
Commit28d3c2d introduced an assertion that if the memorizeddownlink location in the insertion stack isn't valid, the parent'sLSN should've changed too. Turns out that was too strict. IngistFindCorrectParent(), if we walk right, we update the parent'sblock number and clear its memorized 'downlinkoffnum'. That triggeredthe assertion on next call to gistFindCorrectParent(), if the parentneeded to be split too. Relax the assertion, so that it's OK ifdownlinkOffnum is InvalidOffsetNumber.Backpatch to v13-, all supported versions. The assertion was added incommit28d3c2d in v12.Reported-by: Alexander Lakhin <exclusion@gmail.com>Reviewed-by: Tender Wang <tndrwang@gmail.com>Discussion:https://www.postgresql.org/message-id/18396-03cac9beb2f7aac3@postgresql.org1 parentc88b36d commit6526d07
1 file changed
+12
-5
lines changedLines changed: 12 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1043 | 1043 |
| |
1044 | 1044 |
| |
1045 | 1045 |
| |
1046 |
| - | |
1047 |
| - | |
1048 |
| - | |
1049 |
| - | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
1050 | 1056 |
| |
1051 |
| - | |
| 1057 | + | |
| 1058 | + | |
1052 | 1059 |
| |
1053 | 1060 |
| |
1054 | 1061 |
| |
|
0 commit comments
Comments
(0)