From: | "David E(dot) Wheeler" <david(at)justatheory(dot)com> |
---|---|
To: | PostgreSQL-development Hackers <pgsql-hackers(at)postgreSQL(dot)org> |
Subject: | Document hashtext() and Friends? |
Date: | 2012-02-21 19:50:18 |
Message-ID: | AB615962-28B4-4396-9270-AB56B08BCA8C@justatheory.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hackers,
Is there a reason that hashtext() and friends are not documented? Given that they’re likely to be used more and more for partitioning and sharding, I think it would be useful to do so, starting with something like this. Comments?
*** a/doc/src/sgml/func.sgml
--- b/doc/src/sgml/func.sgml
***************
*** 1557,1562 ****
--- 1557,1577 ----
<row>
<entry>
<indexterm>
+ <primary>hashtext</primary>
+ </indexterm>
+ <literal><function>hashtext(<parameter>string</parameter>)</function></literal>
+ </entry>
+ <entry><type>int</type></entry>
+ <entry>
+ Generate a hash value for string.
+ </entry>
+ <entry><literal>hashtext('greetings, human')</literal></entry>
+ <entry><literal>-1132466231</literal></entry>
+ </row>
+
+ <row>
+ <entry>
+ <indexterm>
<primary>left</primary>
</indexterm>
<literal><function>left(<parameter>str</parameter> <type>text</type>,
Best
David
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2012-02-21 20:01:06 | Re: Document hashtext() and Friends? |
Previous Message | Alvaro Herrera | 2012-02-21 18:54:03 | Re: REASSIGN OWNED lacks support for FDWs |