forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitb6558e4
committed
nbtree: Remove useless 'strat' local variable.
Remove a local variable that was used to avoid overwriting strat_totalwith the = operator strategy when a >= operator strategy key was alreadyincluded in the initial positioning/insertion scan keys by _bt_first(for backwards scans it would have to be a <= key that was included)._bt_first's strat_total local variable now simply tracks the operatorstrategy of the final scan key that was included in the scan's insertionscan key (barring the case where the !used_all_subkeys row compare pathadjusts strat_total in its own way)._bt_first already treated >= keys (or <= keys) as = keys for initialpositioning purposes. There is no good reason to remember that that waswhat happened; no later _bt_first step cares about the distinction.Note, in particular, that the insertion scan key's 'nextkey' and'backward' fields will be initialized the same way regardless.Author: Peter Geoghegan <pg@bowt.ie>Reviewed-By: Tomas Vondra <tomas@vondra.me>Discussion:https://postgr.es/m/CAH2-Wz=PKR6rB7qbx+Vnd7eqeB5VTcrW=iJvAsTsKbdG+kW_UA@mail.gmail.com1 parent3c0fd64 commitb6558e4
1 file changed
+5
-13
lines changedLines changed: 5 additions & 13 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
883 | 883 |
| |
884 | 884 |
| |
885 | 885 |
| |
886 |
| - | |
887 | 886 |
| |
888 | 887 |
| |
889 | 888 |
| |
| |||
1090 | 1089 |
| |
1091 | 1090 |
| |
1092 | 1091 |
| |
1093 |
| - | |
1094 |
| - | |
1095 |
| - | |
1096 |
| - | |
1097 |
| - | |
1098 |
| - | |
1099 |
| - | |
1100 |
| - | |
1101 |
| - | |
1102 |
| - | |
1103 |
| - | |
1104 |
| - | |
| 1092 | + | |
| 1093 | + | |
| 1094 | + | |
| 1095 | + | |
| 1096 | + | |
1105 | 1097 |
| |
1106 | 1098 |
| |
1107 | 1099 |
| |
|
0 commit comments
Comments
(0)