Re: inserting binary in a bytea field

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: inserting binary in a bytea field
Дата
Msg-id 11201.975695894@sss.pgh.pa.us
обсуждение исходный текст
Ответ на inserting binary in a bytea field  (Olivier Jeannet <jeannet@montrouge.tt.slb.com>)
Список pgsql-bugs
Olivier Jeannet <jeannet@montrouge.tt.slb.com> writes:
> Is this normal ?
> Am I supposed to get binary values as escaped ASCII,

Yes.  Otherwise you'd have big trouble with, for example, \000.

You can use a binary cursor to read out unconverted data, but that might
be more trouble than it's worth.

There has been talk of designing some access functions similar to the
large-object functionality (lo_read/lo_write, etc) for bytea values.
That would bypass this issue and also allow reading/writing large
values in sections, which'd be awfully nice.  Not done yet though.

            regards, tom lane

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

Предыдущее
От: Olivier Jeannet
Дата:
Сообщение: inserting binary in a bytea field
Следующее
От: Tom Lane
Дата:
Сообщение: psql doesn't count lines correctly in pg_dump scripts