Re: bytea documentation error

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: rsindlin(at)gmail(dot)com
Cc: pgsql-docs(at)lists(dot)postgresql(dot)org
Subject: Re: bytea documentation error
Date: 2023-03-18 20:05:01
Message-ID: 558534.1679169901@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

PG Doc comments form <noreply(at)postgresql(dot)org> writes:
> 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`.

Yeah, that's not really right. Also, this example is pretty shoddy
compared to the one for escape format a little further down.
Will fix, thanks for the report!

regards, tom lane

In response to

Browse pgsql-docs by date

  From Date Subject
Next Message Tomas Pospisek 2023-03-20 12:08:47 Re: Make SSPI documentation clearer
Previous Message PG Doc comments form 2023-03-17 16:56:52 bytea documentation error