OSDN Git Service

There are some bugs about backward scanning using
authorBruce Momjian <bruce@momjian.us>
Tue, 13 Apr 1999 17:18:29 +0000 (17:18 +0000)
committerBruce Momjian <bruce@momjian.us>
Tue, 13 Apr 1999 17:18:29 +0000 (17:18 +0000)
commit174b552e711c337535481dbbb35c1b7a3caa101b
tree6609bd504cb2de971e28bea4da41ecab492097fc
parentdf6e504437315864a8e0c0181445c1cddbbe4c26
There are some bugs about backward scanning using
indexes.

1. Index Scan using plural indexids never scan backward
   as to the order of indexids.
2. The cursor using Index scan is not usable after moving
   past the end.

This patch solves above bugs.
Moreover the change of _bt_first() would be useful to extend
ORDER BY patch by Jan Wieck for all descending order cases.

Hiroshi Inoue
src/backend/access/nbtree/nbtsearch.c
src/backend/access/nbtree/nbtutils.c
src/backend/executor/nodeIndexscan.c