| От | Tom Lane |
|---|---|
| Тема | Re: bytea hex input/output |
| Дата | |
| Msg-id | 14950.1147834905@sss.pgh.pa.us обсуждение |
| Ответ на | Re: bytea hex input/output ("Michael Artz" <mlartz@gmail.com>) |
| Ответы |
Re: bytea hex input/output
|
| Список | pgsql-general |
"Michael Artz" <mlartz@gmail.com> writes:
> What ig going on behind the scenes? Does it first get converted to text and
> then on to bytea?
No, the \nnn escape is built into the lexer's syntax for a string
literal (see backend/parser/scan.l), and only after that does the string
get fed to bytea's input routine (or any other datatype's either).
In hindsight this was a horribly bad idea that we'll be paying through
the nose for, for some time to come :-(. But we're stuck with it for
the moment.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера