Commit 7465ae06 authored by Bruce Momjian's avatar Bruce Momjian

Document that char() ignores spaces in non-pattern comparisons, not in

pattern comparisons such as LIKE and regex.
parent 4ff90d99
...@@ -1014,11 +1014,13 @@ SELECT '52093.89'::money::numeric::float8; ...@@ -1014,11 +1014,13 @@ SELECT '52093.89'::money::numeric::float8;
with spaces to the specified width <replaceable>n</>, and are with spaces to the specified width <replaceable>n</>, and are
stored and displayed that way. However, the padding spaces are stored and displayed that way. However, the padding spaces are
treated as semantically insignificant. Trailing spaces are treated as semantically insignificant. Trailing spaces are
disregarded when comparing two values of type <type>character</type>, disregarded when non-pattern comparing two values of type <type>character</type>,
and they will be removed when converting a <type>character</type> value and they will be removed when converting a <type>character</type> value
to one of the other string types. Note that trailing spaces to one of the other string types. Note that trailing spaces
<emphasis>are</> semantically significant in <emphasis>are</> semantically significant in
<type>character varying</type> and <type>text</type> values. <type>character varying</type> and <type>text</type> values, and
when using pattern matching comparisons, e.g. <literal>LIKE</>,
regular expressions.
</para> </para>
<para> <para>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment