Re: Hash index

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Scott Marlowe <smarlowe(at)g2switchworks(dot)com>
Cc: RAJU kumar <raju_19db(at)rediffmail(dot)com>, pgsql-admin(at)postgresql(dot)org
Subject: Re: Hash index
Date: 2005-08-30 19:32:26
Message-ID: 24115.1125430346@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Scott Marlowe <smarlowe(at)g2switchworks(dot)com> writes:
> Personally, I think that when one creates a non-btree index, one should
> get a warning saying that non-btree indexes are not necessarily
> transactionally safe in the event of a crash.

As of 8.1, GIST indexes are WAL-logged, so that would be inappropriate
anyway.

What I foresee happening (soon, 8.2 maybe) is that rtree will go away
completely; there isn't anything it can do that GIST can't do as well or
better, so there's no point in expending maintenance resources on it.
We're really only leaving it there for 8.1 because there's so much new,
as-yet-poorly-tested code involved in the GIST replacement opclasses.

That leaves hash. I'm hoping someone will step up and do WAL logging
for hash in the near future. Unlike rtree, I'm not expecting that we
might get rid of hash indexes. Even if the performance problems never
get fixed, we use hash index opclasses to manage datatype-specific
hashing for hash joins, hash aggregation, etc, so if we removed hash
indexes we'd need to find some other representation for all that.

Anyway, that's my two cents on the development roadmap for indexes.

regards, tom lane

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message David Durham 2005-08-30 19:41:34 Re: First mail after registration
Previous Message Scott Marlowe 2005-08-30 18:53:43 Re: Hash index