Re: BUG #14161: reverse index scan cann't use double link? - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #14161: reverse index scan cann't use double link?
Date
Msg-id 28977.1464447791@sss.pgh.pa.us
Whole thread Raw
In response to BUG #14161: reverse index scan cann't use double link?  (digoal@126.com)
Responses Re: BUG #14161: reverse index scan cann't use double link?
List pgsql-bugs
digoal@126.com writes:
>    in btree, leaf page has prev and next page. but when i use order by desc,
> it's not use the prev page link? it scan from root per leaf page.

You've provided no evidence whatsoever to support that claim.

> 9 page hint = meta + root + branch + 6 leaf
> 19 page hint = meta + 6(root + branch + leaf)

I think more likely what's happening is that one end of the index is
packed full and the other end is about 50% full.

            regards, tom lane

pgsql-bugs by date:

Previous
From: dmigowski@ikoffice.de
Date:
Subject: BUG #14162: No statistics for functions used as aggregates
Next
From: 德哥
Date:
Subject: Re: BUG #14161: reverse index scan cann't use double link?