diff options
author | Bruce Momjian <bruce@momjian.us> | 2002-12-06 05:20:28 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2002-12-06 05:20:28 +0000 |
commit | e87e82d2b7c6407551988ad8c3f153128163f4a4 (patch) | |
tree | aeeb31ede91f36ad58bd11254588f07ca876a5b3 /doc/src | |
parent | 88ae9cd4118a0eb4a6fd8acc87f453ec113c113d (diff) | |
download | postgresql-e87e82d2b7c6407551988ad8c3f153128163f4a4.tar.gz postgresql-e87e82d2b7c6407551988ad8c3f153128163f4a4.zip |
Attached are two small patches to expose md5 as a user function -- including
documentation and regression test mods. It seemed small and unobtrusive enough
to not require a specific proposal on the hackers list -- but if not, let me
know and I'll make a pitch. Otherwise, if there are no objections please apply.
Joe Conway
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/sgml/func.sgml | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index d3b4e7555e1..2262152fd1c 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -1,5 +1,5 @@ <!-- -$Header: /cvsroot/pgsql/doc/src/sgml/func.sgml,v 1.133 2002/12/05 04:38:29 momjian Exp $ +$Header: /cvsroot/pgsql/doc/src/sgml/func.sgml,v 1.134 2002/12/06 05:20:12 momjian Exp $ PostgreSQL documentation --> @@ -1140,6 +1140,16 @@ PostgreSQL documentation </row> <row> + <entry><function>md5</function>(<parameter>string</parameter> <type>text</type>)</entry> + <entry><type>text</type></entry> + <entry> + Calculates the MD5 hash of given string, returning the result in hex. + </entry> + <entry><literal>md5('abc')</literal></entry> + <entry><literal>900150983cd24fb0d6963f7d28e17f72</literal></entry> + </row> + + <row> <entry><function>pg_client_encoding</function>()</entry> <entry><type>name</type></entry> <entry> |