Re: Using TEXT columns for binary content

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Using TEXT columns for binary content
Дата
Msg-id 774.1050942227@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Using TEXT columns for binary content  (Joe Conway <mail@joeconway.com>)
Ответы Re: Using TEXT columns for binary content  (Joe Conway <mail@joeconway.com>)
Список pgsql-general
Joe Conway <mail@joeconway.com> writes:
> 1) You have to encode to base64 on the way in (bytea has to be escaped
>     on INSERT/UPDATE too)
> 2) You have to decode to binary on the way out (depending on your
>     middleware, you can use a binary cursor for bytea and avoid the
>     decode on SELECT)

Note that the 7.4 protocol should make it a lot easier to use bytea for
binary data without any escaping ... although some amount of client
reprogramming would be needed ...

            regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: stddev returns 0 when there is one row
Следующее
От: Joe Conway
Дата:
Сообщение: Re: Using TEXT columns for binary content