Re: store in bytea

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: store in bytea
Дата
Msg-id 2905.998659697@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: store in bytea  ("Ben-Nes Michael" <miki@canaan.co.il>)
Ответы Re: store in bytea  (Lincoln Yeoh <lyeoh@pop.jaring.my>)
Список pgsql-general
"Ben-Nes Michael" <miki@canaan.co.il> writes:
> On the theoretical issue, can I use TEXT field to store binary ?

TEXT will not handle null (zero) bytes.  If you are using a multibyte
character set, it will likely also do the wrong thing with byte
sequences that are illegal or incomplete multibyte characters.

Use BYTEA if you want to store arbitrary byte sequences --- that's what
it's for.

            regards, tom lane

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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: valid NULL DATE value
Следующее
От: Denis Gasparin
Дата:
Сообщение: Re: BIGINT datatype and Indexes Failure