forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitb524974
committed
Refactor handling of nbtree array redundancies.
Teach _bt_preprocess_array_keys to eliminate redundant array equalityscan keys directly, rather than just marking them as redundant. Its_bt_preprocess_keys caller is no longer required to ignore input scankeys that were marked redundant in this way. Oversights like the onefixed by commitf22e17f are no longer possible.The new scheme also makes it easier for _bt_preprocess_keys to output aso.keyData[] scan key array with _more_ scan keys than it was passed inits scan.keyData[] input scan key array. An upcoming patch that addsskip scan optimizations to nbtree will take advantage of this.In passing, remove and rename certain _bt_preprocess_keys variables tomake the difference between our input scan key array and our output scankey array clearer.Author: Peter Geoghegan <pg@bowt.ie>Reviewed-By: Tomas Vondra <tomas@vondra.me>Discussion:https://postgr.es/m/CAH2-Wz=9A_UtM7HzUThSkQ+BcrQsQZuNhWOvQWK06PRkEp=SKQ@mail.gmail.com1 parent54562c9 commitb524974
1 file changed
+100
-110
lines changed0 commit comments
Comments
(0)