Search Postgresql Archives

Re: PostgreSQL's hashing function?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Joshua D. Drake wrote:
On Fri, 22 Feb 2008 16:49:10 -0500
"Kynn Jones" <kynnjo@xxxxxxxxx> 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.

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux