Hash Indexes

From: Naz Gassiep <naz(at)mira(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Hash Indexes
Date: 2008-01-04 16:20:54
Message-ID: 477E5CE6.2060903@mira.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi there,
I am creating functionality where there are blocks of text that are
being stored in the DB and that need to be searched for. No like or
pattern matching, just a plain old WHERE clause. Obviously, hash indexes
would be best here, however I've been warned away from PG's hash
implementation. Would it be better to manually create a column storing
the hashes (maintained with a CHECK (md5(textcol) = hashcol) type
constraint) and generate the hashes in the app?

- Naz.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Kyle Wilcox 2008-01-04 16:26:39 Fail to connect after server crash
Previous Message Tom Lane 2008-01-04 15:59:07 Re: ERROR: catalog is missing 9 attribute(s) for relid 10297