forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit81a2579
committed
Clarify nbtree array exhaustion comments.
Strictly speaking, we only need to make sure to leave the scan's arraykeys in their final positions (final for the current scan direction) tohandle SAOP array exhaustion because btgettuple might only return asubset of the items for the final page (final for the current scandirection), before the scan changes direction. While it's typical forso->currPos to be invalidated shortly after the scan's arrays are firstexhausted, and while so->currPos invalidation does obviate the need toleave the scan's arrays in any particular state, we can't rely on any ofthat actually happening when handling array exhaustion. Adjust commentsto make all of that a lot clearer.Oversight in commit5bf748b, which enhanced nbtree ScalarArrayOpexecution.1 parent849110d commit81a2579
1 file changed
+10
-5
lines changedLines changed: 10 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1424 | 1424 |
| |
1425 | 1425 |
| |
1426 | 1426 |
| |
1427 |
| - | |
1428 |
| - | |
1429 |
| - | |
| 1427 | + | |
1430 | 1428 |
| |
1431 | 1429 |
| |
1432 | 1430 |
| |
1433 |
| - | |
1434 |
| - | |
| 1431 | + | |
| 1432 | + | |
| 1433 | + | |
| 1434 | + | |
| 1435 | + | |
| 1436 | + | |
| 1437 | + | |
| 1438 | + | |
| 1439 | + | |
1435 | 1440 |
| |
1436 | 1441 |
| |
1437 | 1442 |
| |
|
0 commit comments
Comments
(0)