From: Alvaro Herrera Date: Sat, 16 Oct 2010 04:11:38 +0000 (-0300) Subject: Document that translate() removes characters in "from" that don't have X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=33ae03f4003adb27651d00688016d1c4a979686f;p=users%2Fhanada%2Fpostgres.git Document that translate() removes characters in "from" that don't have a corresponding "to" character. Author: Josh Kupershmidt --- diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index 5d422afef2..183b72cda4 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -1866,10 +1866,12 @@ Any character in string that matches a character in the from set is replaced by the corresponding character in the to - set + set. If from is longer than + to, occurrences of the extra characters in + from are removed. - translate('12345', '14', 'ax') - a23x5 + translate('12345', '143', 'ax') + a2x5