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

From Peter Geoghegan
Subject Re: Document hashtext() and Friends?
Date
Msg-id CAEYLb_WMwOkp=60LnaV8ZsPgi1obLoNRe5_YgypHh8FBgP-UmA@mail.gmail.com
Whole thread Raw
In response to Re: Document hashtext() and Friends?  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Document hashtext() and Friends?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On 21 February 2012 20:01, Tom Lane <tgl@sss.pgh.pa.us> 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.

My pg_stat_statements normalisation patch actually extends the
underlying hash_any() function to support 8 byte results, exactly as
currently anticipated by comments above that function, while supplying
a compatibility macro that is used by existing hash_any() clients.

--
Peter Geoghegan       http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training and Services


pgsql-hackers by date:

Previous
From: Michael Glaesemann
Date:
Subject: Re: Document hashtext() and Friends?
Next
From: "David E. Wheeler"
Date:
Subject: Re: Document hashtext() and Friends?