From: Tom Lane <tgl@sss.pgh.pa.us>
To: pelletier.michel@gmail.com
Cc: pgsql-docs@lists.postgresql.org
Subject: Re: Minor result error in binary strings documentation
Date: Sat, 30 May 2020 21:02:14 -0400
Message-ID: <15129.1590886934@sss.pgh.pa.us> (raw)
In-Reply-To: <159085906507.7029.6617929006199006685@wrigleys.postgresql.org>
References: <159085906507.7029.6617929006199006685@wrigleys.postgresql.org>
PG Doc comments form <noreply@postgresql.org> writes:
> On the page:
> https://www.postgresql.org/docs/12/functions-binarystring.html> The result for decode('123\000456', 'escape') is incorrect, it should be:
> # select decode('123\000456', 'escape');
> decode
> ------------------
> \x31323300343536
The example is "correct" as given, because it assumes bytea_output is set
to escape, as noted at the top of the page. For v13, I have adjusted all
the examples on this page to follow the modern default of bytea_output =
hex, but I don't plan to retrofit the older branches that way.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-docs@postgresql.org
Cc: tgl@sss.pgh.pa.us, pelletier.michel@gmail.com, pgsql-docs@lists.postgresql.org
Subject: Re: Minor result error in binary strings documentation
In-Reply-To: <15129.1590886934@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox