pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Doc comments form <noreply@postgresql.org>
To: pgsql-docs@lists.postgresql.org
Cc: rsindlin@gmail.com
Subject: bytea documentation error
Date: Fri, 17 Mar 2023 16:56:52 +0000
Message-ID: <167907221210.1803488.5939223864945604536@wrigleys.postgresql.org> (raw)

The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/15/datatype-binary.html
Description:

I believe there is a documentation error in the example for "8.4.1 bytea Hex
Format"
(https://www.postgresql.org/docs/current/datatype-binary.html#id-1.5.7.12.9).
The example is
`SELECT '\xDEADBEEF';`
However, when I try that on my system [psql (13.9 (Ubuntu
13.9-1.pgdg20.04+1), server 13.10 (Ubuntu 13.10-1.pgdg20.04+1))], it works
*but* the result is type `text` per `pg_typeof()`.  I believe the example
needs to be corrected with an explicit cast to `bytea`.


view thread (2+ messages)  latest in thread

Message-ID: <167907221210.1803488.5939223864945604536@wrigleys.postgresql.org>
Permalink:  ../167907221210.1803488.5939223864945604536@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/167907221210.1803488.5939223864945604536@wrigleys.postgresql.org

 · 

reply

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: noreply@postgresql.org, pgsql-docs@lists.postgresql.org, rsindlin@gmail.com
  Subject: Re: bytea documentation error
  In-Reply-To: <167907221210.1803488.5939223864945604536@wrigleys.postgresql.org>

* 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