On Tue, Mar 6, 2018 at 9:06 AM, Simon Riggs <simon.ri...@2ndquadrant.com> wrote: >> Simon had raised concerns about DESC indexes and whether we need to do the >> checks for leftmost page in that case. I haven't yet figured out if DESC >> indexes are actually stored in the reverse order. I am gonna look at that >> too. > > No, I meant that you were testing whether the value was higher (> 0), > whereas it should be lower (< 0) on DESC indexes.
Isn't that already handled by _bt_compare?