Re: Preventing index scans for non-recoverable index AMs - Mailing list pgsql-hackers

From Heikki Linnakangas
Subject Re: Preventing index scans for non-recoverable index AMs
Date
Msg-id 494A475E.7010208@enterprisedb.com
Whole thread Raw
In response to Re: Preventing index scans for non-recoverable index AMs  ("Pavan Deolasee" <pavan.deolasee@gmail.com>)
Responses Re: Preventing index scans for non-recoverable index AMs
List pgsql-hackers
Pavan Deolasee wrote:
> BTW, if there is no proven case where hash index works significantly
> better than btree (that's what the doc says), why not just completely
> abandon it ?

That has been considered many times, see archives. I believe the changes 
done in 8.4 actually made it faster for some cases. And as Kenneth 
pointed out hash indexes can handle keys larger than 1/3 of page size, 
that b-tree can't.

--   Heikki Linnakangas  EnterpriseDB   http://www.enterprisedb.com


pgsql-hackers by date:

Previous
From: "Pavan Deolasee"
Date:
Subject: Re: Preventing index scans for non-recoverable index AMs
Next
From: Heikki Linnakangas
Date:
Subject: Re: Latest version of Hot Standby patch