forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitb109b03
committed
Repair a number of places that didn't bother to check whether PageAddItem
succeeds or not. Revise rtree page split algorithm to take care aboutmaking a feasible split --- ie, will the incoming tuple actually fit?Failure to make a feasible split, combined with failure to notice thefailure, account for Jim Stone's recent bug report. I suspect thathash and gist indices may have the same type of bug, but at least nowwe'll get error messages rather than silent failures if so. Also cleanup rtree code to use Datum rather than char* where appropriate.1 parent296c806 commitb109b03
File tree
6 files changed
+336
-192
lines changed- src/backend
- access
- gist
- hash
- rtree
- commands
6 files changed
+336
-192
lines changedLines changed: 4 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6 | 6 |
| |
7 | 7 |
| |
8 | 8 |
| |
9 |
| - | |
| 9 | + | |
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
| |||
395 | 395 |
| |
396 | 396 |
| |
397 | 397 |
| |
| 398 | + | |
| 399 | + | |
| 400 | + | |
398 | 401 |
| |
399 | 402 |
| |
400 | 403 |
| |
|
Lines changed: 5 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
230 | 230 |
| |
231 | 231 |
| |
232 | 232 |
| |
233 |
| - | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
234 | 237 |
| |
235 | 238 |
| |
236 | 239 |
| |
|
Lines changed: 5 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
564 | 564 |
| |
565 | 565 |
| |
566 | 566 |
| |
567 |
| - | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
568 | 571 |
| |
569 | 572 |
| |
570 | 573 |
| |
|
Lines changed: 5 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
619 | 619 |
| |
620 | 620 |
| |
621 | 621 |
| |
622 |
| - | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
623 | 626 |
| |
624 | 627 |
| |
625 | 628 |
| |
|
0 commit comments
Comments
(0)