]> granicus.if.org Git - postgresql/commit
Update examples for string-related functions.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 7 Jul 2011 23:34:28 +0000 (19:34 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 7 Jul 2011 23:34:28 +0000 (19:34 -0400)
commitd1ca2a1ee93916d69836d7a1924aa7601bcfb635
treed3c96effa912a7f8586a646a087b41f90e49a808
parentf1d869276f7c256ade9d5dd6a4d8143821cdac1c
Update examples for string-related functions.

In the example for decode(), show the bytea result in hex format,
since that's now the default.  Use an E'' string in the example for
quote_literal(), so that it works regardless of the
standard_conforming_strings setting.  On the functions-for-binary-strings
page, leave the examples as-is for readability, but add a note pointing out
that they are shown in escape format.  Per comments from Thom Brown.

Also, improve the description for encode() and decode() a tad.

Backpatch to 9.0, where bytea_output was introduced.
doc/src/sgml/func.sgml