| От | Tom Lane |
|---|---|
| Тема | Re: bytea documentation error |
| Дата | |
| Msg-id | 558534.1679169901@sss.pgh.pa.us обсуждение |
| Ответ на | bytea documentation error (PG Doc comments form <noreply@postgresql.org>) |
| Список | pgsql-docs |
PG Doc comments form <noreply@postgresql.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
В списке pgsql-docs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера