Re: putting binary data in a char field?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: putting binary data in a char field?
Дата
Msg-id 21408.1087575786@sss.pgh.pa.us
обсуждение исходный текст
Ответ на putting binary data in a char field?  (Ron Snyder <snyder@roguewave.com>)
Список pgsql-general
Ron Snyder <snyder@roguewave.com> writes:
> That's all just background for my real question-- is there anything in the
> standards (or elsewhere) that says you can't put binary(**) data into a char
> field?  When I changed the field to a bytea, processing time was
> significantly reduced.

bytea is the right thing.  char will not support null (zero) bytes in
the data, and you may have character-set-encoding issues as well.

            regards, tom lane

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

Предыдущее
От: Bruno Wolff III
Дата:
Сообщение: Re: 7.4's INFORMATION_SCHEMA.Columns View
Следующее
От: Duane Lee - EGOVX
Дата:
Сообщение: Re: virtual fields on VIEW?