Re: PostgreSQL's hashing function? - Mailing list pgsql-general

From Greg Stark
Subject Re: PostgreSQL's hashing function?
Date
Msg-id 47BF72F0.3000501@enterprisedb.com
Whole thread Raw
In response to Re: PostgreSQL's hashing function?  ("Joshua D. Drake" <jd@commandprompt.com>)
Responses Re: PostgreSQL's hashing function?
List pgsql-general
Joshua D. Drake wrote:
> On Fri, 22 Feb 2008 16:49:10 -0500
> "Kynn Jones" <kynnjo@gmail.com> wrote:
>
>
>> Hi!
>> Does PostgreSQL expose its hash function?  I need a fast way to hash a
>> string to a short code using characters in the set [A-Za-z0-9_].
>>
> Is md5 good enough? :)
>

Probably not. He said fast.

You could use hashtext() which is Postgres's internal hash function.
There's some possibility it could change in future versions of Postgres
though.

pgsql-general by date:

Previous
From: Stephen Davies
Date:
Subject: Re: ts_headline
Next
From: tuanhoanganh
Date:
Subject: Re: Function parameters change when update to 8.3