Re: Document hashtext() and Friends? - Mailing list pgsql-hackers

From Michael Glaesemann
Subject Re: Document hashtext() and Friends?
Date
Msg-id 84559A3A-318B-48C6-8246-4F15E19B239E@seespotcode.net
Whole thread Raw
In response to Re: Document hashtext() and Friends?  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Document hashtext() and Friends?  ("David E. Wheeler" <david@justatheory.com>)
List pgsql-hackers
On Feb 21, 2012, at 15:01, Tom Lane wrote:

> "David E. Wheeler" <david@justatheory.com> writes:
>> Is there a reason that hashtext() and friends are not documented?
>
> Yes.  They are internal functions that exist for the convenience of the
> system, not for users.  We've discussed this before, and decided that
> we don't want people to rely on them continuing to have exactly the
> current behavior.  One example of a possible future change is to widen
> the results from 4 bytes to 8.

And hashtext *has* changed across versions, which is why Peter Eisentraut published a version-independent hash function
library:https://github.com/petere/pgvihash 

Michael Glaesemann
grzm seespotcode net





pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Document hashtext() and Friends?
Next
From: Peter Geoghegan
Date:
Subject: Re: Document hashtext() and Friends?