diff options
author | Peter Geoghegan <pg@bowt.ie> | 2019-03-31 17:24:04 -0700 |
---|---|---|
committer | Peter Geoghegan <pg@bowt.ie> | 2019-03-31 17:24:04 -0700 |
commit | 76a39f2295ecb040f2ea052320941e1eb9b526c0 (patch) | |
tree | 803261b001a5b8f0c12898150d6c7045f65b024f /src/backend/access/gist/gistxlog.c | |
parent | 8fba397f0ca7b9a1fd59ab2b676c057dde4f8219 (diff) | |
download | postgresql-76a39f2295ecb040f2ea052320941e1eb9b526c0.tar.gz |
Fix nbtree high key "continuescan" row compare bug.
Commit 29b64d1d mishandled skipping over truncated high key attributes
during row comparisons. The row comparison key matching loop would loop
forever when a truncated attribute was encountered for a row compare
subkey. Fix by following the example of other code in the loop: advance
the current subkey, or break out of the loop when the last subkey is
reached.
Add test coverage for the relevant _bt_check_rowcompare() code path.
The new test case is somewhat tied to nbtree implementation details,
which isn't ideal, but seems unavoidable.
Diffstat (limited to 'src/backend/access/gist/gistxlog.c')
0 files changed, 0 insertions, 0 deletions