From: | "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com> |
---|---|
To: | "Kynn Jones" <kynnjo(at)gmail(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: PostgreSQL's hashing function? |
Date: | 2008-02-22 21:57:55 |
Message-ID: | 20080222135755.1e90a622@commandprompt.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Fri, 22 Feb 2008 16:49:10 -0500
"Kynn Jones" <kynnjo(at)gmail(dot)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_].
> (I'm not sure yet how long this code needs to be, but I think even
> something as short as length 2 may be enough.)
Is md5 good enough? :)
select md5()
>
> TIA!
>
> Kynn
- --
The PostgreSQL Company since 1997: http://www.commandprompt.com/
PostgreSQL Community Conference: http://www.postgresqlconference.org/
Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate
PostgreSQL SPI Liaison | SPI Director | PostgreSQL political pundit
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFHv0VjATb/zqfZUUQRAqUNAJ9zejT/pN1uIDtQYEQ7TQvt0LqFjACfelSy
wNa9NNUN8rAfmeqwrKCvUb0=
=H8DS
-----END PGP SIGNATURE-----
From | Date | Subject | |
---|---|---|---|
Next Message | scotty@linuxtime.it | 2008-02-22 22:30:06 | Re: Function problem |
Previous Message | Kynn Jones | 2008-02-22 21:49:10 | PostgreSQL's hashing function? |