From: Bruce Momjian Date: Tue, 8 Mar 2011 17:54:00 +0000 (-0500) Subject: Adjust CHAR() doc mention of pattern matching issues for trailing X-Git-Tag: REL9_1_ALPHA4~14 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=915cd10c164be27dac0134efb16358f7d7564e8d;p=postgresql Adjust CHAR() doc mention of pattern matching issues for trailing spaces. --- diff --git a/doc/src/sgml/datatype.sgml b/doc/src/sgml/datatype.sgml index 22d4c4e33a..0bb6594eab 100644 --- a/doc/src/sgml/datatype.sgml +++ b/doc/src/sgml/datatype.sgml @@ -1014,12 +1014,12 @@ SELECT '52093.89'::money::numeric::float8; with spaces to the specified width n, and are stored and displayed that way. However, the padding spaces are treated as semantically insignificant. Trailing spaces are - disregarded when non-pattern comparing two values of type character, + disregarded when comparing two values of type character, and they will be removed when converting a character value to one of the other string types. Note that trailing spaces are semantically significant in character varying and text values, and - when using pattern matching comparisons, e.g. LIKE, + when using pattern matching, e.g. LIKE, regular expressions.