pg.ddx.io pgsql-docs@postgresql.org mailing list archive
help / color / mirror / Atom feedMinor result error in binary strings documentation
2+ messages / 2 participants
[nested] [flat]
* Minor result error in binary strings documentation
@ 2020-05-30 17:17 PG Doc comments form <noreply@postgresql.org>
0 siblings, 1 reply; 2+ messages in thread
From: PG Doc comments form @ 2020-05-30 17:17 UTC (permalink / raw)
To: pgsql-docs@lists.postgresql.org; +Cc: pelletier.michel@gmail.com
The following documentation comment has been logged on the website:
Page: https://www.postgresql.org/docs/12/functions-binarystring.html
Description:
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
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Minor result error in binary strings documentation
@ 2020-05-31 01:02 Tom Lane <tgl@sss.pgh.pa.us>
parent: PG Doc comments form <noreply@postgresql.org>
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 2020-05-31 01:02 UTC (permalink / raw)
To: pelletier.michel@gmail.com; +Cc: pgsql-docs@lists.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
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2020-05-31 01:02 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-05-30 17:17 Minor result error in binary strings documentation PG Doc comments form <noreply@postgresql.org>
2020-05-31 01:02 ` Tom Lane <tgl@sss.pgh.pa.us>
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