Re: How to cast VARCHAR to BYTEA and vice-versa?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: How to cast VARCHAR to BYTEA and vice-versa?
Дата
Msg-id 8503.1110302316@sss.pgh.pa.us
обсуждение исходный текст
Ответ на How to cast VARCHAR to BYTEA and vice-versa?  ("Moran.Michael" <Michael.Moran@IGT.com>)
Ответы Re: How to cast VARCHAR to BYTEA and vice-versa?  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
Список pgsql-hackers
"Moran.Michael" <Michael.Moran@IGT.com> writes:
> How do I cast VARCHAR to BYTEA?

I think it would work to create a cast WITHOUT FUNCTION, assuming that
the semantics you want is that the exact bytes in the varchar datum
become the bytes in the bytea (no encoding or backslashing conversions).
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: "Moran.Michael"
Дата:
Сообщение: How to cast VARCHAR to BYTEA and vice-versa?
Следующее
От: "Moran.Michael"
Дата:
Сообщение: Re: How to cast VARCHAR to BYTEA and vice-versa?