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

Поиск
Список
Период
Сортировка
От Christopher Kings-Lynne
Тема Re: How to cast VARCHAR to BYTEA and vice-versa?
Дата
Msg-id 422E4D06.1010902@familyhealth.com.au
обсуждение исходный текст
Ответ на Re: How to cast VARCHAR to BYTEA and vice-versa?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
>>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).

Are pg_escape_bytea and pg_unescape_bytea available from the backend as 
well as libpq?

Chris


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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: How to cast VARCHAR to BYTEA and vice-versa?
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Where to see the patch queue (was Re: [PATCHES] Patch