]> granicus.if.org Git - postgresql/commit
Doc: improve description of trim() and related functions.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 30 Nov 2016 18:34:14 +0000 (13:34 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 30 Nov 2016 18:34:14 +0000 (13:34 -0500)
commit3e65fd045a924f4c4cfaa0f73857db28558afd11
tree1aa1e8443571dcc3e81b92d6759f587a9bb42b66
parentf45719997d3c8c8feb563ea9976ced15681de1ce
Doc: improve description of trim() and related functions.

Per bug #14441 from Mark Pether, the documentation could be misread,
mainly because some of the examples failed to show what happens with
a multicharacter "characters to trim" string.  Also, while the text
description in most of these entries was fairly clear that the
"characters" argument is a set of characters not a substring to match,
some of them used variant wording that was a bit less clear.
trim() itself suffered from both deficiencies and was thus pretty
misinterpretable.

Also fix failure to explain which of LEADING/TRAILING/BOTH is the
default.

Discussion: https://postgr.es/m/20161130011710.6539.53657@wrigleys.postgresql.org
doc/src/sgml/func.sgml