aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeSort.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2007-01-07 01:56:24 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2007-01-07 01:56:24 +0000
commit2054724c085b354f83d59611b62b47b641226e59 (patch)
treee2823b87088560218e6d06680082d92a220b6189 /src/backend/executor/nodeSort.c
parent79a0a5758143a9b787069d620dae8cd52dd0601a (diff)
downloadpostgresql-2054724c085b354f83d59611b62b47b641226e59.tar.gz
postgresql-2054724c085b354f83d59611b62b47b641226e59.zip
Fix oversight in handling of row-comparison index keys: if the row comparison
doesn't exactly match the index, we may have to change our initial positioning strategy. For example, given an index on (f1,f2,f3) and a WHERE condition "ROW(f1,f3) > ROW(2,3)", the code extracted the initial-positioning condition "f1 > 2", which is wrong ... it has to be "f1 >= 2", else some rows matching the WHERE condition may fail to be returned. Applying patch to 8.2 only --- I'll fix it in HEAD later as part of the planned index improvements (reverse-sort and NULLS FIRST/LAST work).
Diffstat (limited to 'src/backend/executor/nodeSort.c')
0 files changed, 0 insertions, 0 deletions