forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitd1e241c
committed
nbtree: Demote minus infinity "can't happen" error.
Only a very basic logic bug in a _bt_insertonpg() caller could lead to aviolation of this invariant. Besides, any newitemoff used for aninternal page is sanitized using other "can't happen" errors in_bt_getstackbuf() or its callers, before _bt_insertonpg() even getscalled.Also, move the error/assertion from the insert-without-split path of_bt_insertonpg() to the top of the same function. There is no reasonwhy this invariant only applies to insertions that happen to not resultin a page split; cover every insertion. The assertion naturally belongsnext to the existing generic assertions that document relativelyhigh-level invariants for the item being inserted.1 parentcacef17 commitd1e241c
1 file changed
+8
-12
lines changedLines changed: 8 additions & 12 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1082 | 1082 |
| |
1083 | 1083 |
| |
1084 | 1084 |
| |
| 1085 | + | |
| 1086 | + | |
| 1087 | + | |
| 1088 | + | |
| 1089 | + | |
| 1090 | + | |
| 1091 | + | |
| 1092 | + | |
1085 | 1093 |
| |
1086 | 1094 |
| |
1087 | 1095 |
| |
| |||
1212 | 1220 |
| |
1213 | 1221 |
| |
1214 | 1222 |
| |
1215 |
| - | |
1216 |
| - | |
1217 |
| - | |
1218 |
| - | |
1219 |
| - | |
1220 |
| - | |
1221 |
| - | |
1222 |
| - | |
1223 |
| - | |
1224 |
| - | |
1225 |
| - | |
1226 |
| - | |
1227 | 1223 |
| |
1228 | 1224 |
| |
1229 | 1225 |
| |
|
0 commit comments
Comments
(0)