Re: Hash Indexes - Mailing list pgsql-hackers

From Oskari Saarenmaa
Subject Re: Hash Indexes
Date
Msg-id 0d6da21f-7d1c-0eda-5ed8-6157aab98367@ohmu.fi
Whole thread Raw
In response to Re: Hash Indexes  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: Hash Indexes  (Andres Freund <andres@anarazel.de>)
List pgsql-hackers
21.09.2016, 15:29, Robert Haas kirjoitti:
> For PostgreSQL, I expect the benefits of improving hash indexes to be
> (1) slightly better raw performance for equality comparisons and (2)
> better concurrency.

There's a third benefit: with large columns a hash index is a lot 
smaller on disk than a btree index.  This is the biggest reason I've 
seen people want to use hash indexes instead of btrees.  hashtext() 
btrees are a workaround, but they require all queries to be adjusted 
which is a pain.

/ Oskari



pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: pg_ctl promote wait
Next
From: Heikki Linnakangas
Date:
Subject: Re: Parallel tuplesort (for parallel B-Tree index creation)