Re: Bug #653: Unable to insert binary data into BYTEA

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: Bug #653: Unable to insert binary data into BYTEA
Дата
Msg-id 200206020631.g526VxF14614@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: Bug #653: Unable to insert binary data into BYTEA  (Tatsuo Ishii <t-ishii@sra.co.jp>)
Список pgsql-bugs
Tatsuo Ishii wrote:
> > After creating an UTF8 database ("createdb --encoding "UTF8" ...) containing BYTEA columns the parser rejects
insertqueries with binary data because they're not UTF8 encoded (escaping doesn't help ;-). 
>
> I don't kno how exactly escaped them, but you need to escape bytes >
> 0x7f (PQescapebytea has been fixed in that way in current). Or you
> could cast them as bytea.

Oh, that is interesting.  I didn't realize the interaction between
encodings and bytea, I guess because bytea usage is only recently
popular.  Do we document this bytea limitation properly?

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Bug #653: Unable to insert binary data into BYTEA column
Следующее
От: Andrew McMillan
Дата:
Сообщение: Re: drop tempoary table VERY slow