aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gin/ginbtree.c
diff options
context:
space:
mode:
authorPeter Geoghegan <pg@bowt.ie>2024-04-18 11:48:41 -0400
committerPeter Geoghegan <pg@bowt.ie>2024-04-18 11:48:41 -0400
commitf22e17f76cf569a797c45268081feadc8ebd68c7 (patch)
treefe8dffbeda7311ba5cd91e1fb920ba3f18fa33d6 /src/backend/access/gin/ginbtree.c
parent9e72f6bfae1707fca1a297db433f6145d582a1c2 (diff)
downloadpostgresql-f22e17f76cf569a797c45268081feadc8ebd68c7.tar.gz
postgresql-f22e17f76cf569a797c45268081feadc8ebd68c7.zip
Don't try to fix eliminated nbtree array scan keys.
Preprocessing for nbtree index scans allowed array "input" scan keys already marked eliminated during array-specific preprocessing to be "fixed up" during preprocessing proper. This allowed eliminated scan keys on DESC index columns to spurious have their strategy commuted, causing assertion failures. To fix, teach _bt_fix_scankey_strategy to ignore these scan keys. This brings it in line with its only caller, _bt_preprocess_keys. Oversight in commit 5bf748b8, which enhanced nbtree ScalarArrayOp execution. Reported-By: Donghang Lin <donghanglin@gmail.com> Discussion: https://postgr.es/m/CAA=D8a2sHK6CAzZ=0CeafC-Y-MFXbYxnRSHvZTi=+JHu6kAa8Q@mail.gmail.com
Diffstat (limited to 'src/backend/access/gin/ginbtree.c')
0 files changed, 0 insertions, 0 deletions