Re: BUG #14161: reverse index scan cann't use double link?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: digoal(at)126(dot)com
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #14161: reverse index scan cann't use double link?
Date: 2016-05-28 15:03:11
Message-ID: 28977.1464447791@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

digoal(at)126(dot)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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message 德哥 2016-05-28 15:59:00 Re: BUG #14161: reverse index scan cann't use double link?
Previous Message dmigowski 2016-05-28 13:52:40 BUG #14162: No statistics for functions used as aggregates