Re: Bytea string operator support

Поиск
Список
Период
Сортировка
От Marko Kreen
Тема Re: Bytea string operator support
Дата
Msg-id 20010906193949.A9357@l-t.ee
обсуждение исходный текст
Ответ на Bytea string operator support  ("Joe Conway" <joseph.conway@home.com>)
Ответы Re: Bytea string operator support  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-patches
On Wed, Sep 05, 2001 at 01:34:06PM -0700, Joe Conway wrote:
> > Why not just stick these things into encode() and name them
> > "my-cool-encoding" or whatever.  There is no truly natural conversion
> > between text and bytea, so encode/decode seem like the proper place.
>
> Here's a patch for bytea string functions. As discussed:
>
> text encode(bytea, 'escape')
> bytea decode(text, 'escape')

Why are you using \xxx encoding there?  As the 'escape' encoding
is supposed to be 'minimalistic' as it escapes only 2
problematic values, then IMHO it would be better to use
\0 and \\ as escapes - takes less room.


--
marko


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

Предыдущее
От: Rene Pijlman
Дата:
Сообщение: Re: JDBC patch procedures (Re: Patch for jdbc2 ResultSet.java)
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Bytea string operator support