From f3567eeaf2423c933166edff320ab1a7093f1ac4 Mon Sep 17 00:00:00 2001 From: Neil Conway Date: Fri, 20 May 2005 01:29:56 +0000 Subject: Implement md5(bytea), update regression tests and documentation. Patch from Abhijit Menon-Sen, minor editorialization from Neil Conway. Also, improve md5(text) to allocate a constant-sized buffer on the stack rather than via palloc. Catalog version bumped. --- doc/src/sgml/func.sgml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'doc/src') diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index 1b031c0c315..8c6eebc86c5 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -1,5 +1,5 @@ @@ -2328,6 +2328,17 @@ PostgreSQL documentation 5 + + md5(string) + text + + Calculates the MD5 hash of string, + returning the result in hexadecimal. + + md5('Th\\000omas'::bytea) + 8ab2d3c9689aaf18 b4958c334c82d8b1 + + decode(string text, -- cgit v1.2.3