Re: Making TEXT NUL-transparent

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: Making TEXT NUL-transparent
Дата
Msg-id CA+TgmoZ6SWbNgpJ=xKAoxh=H+Z1+eGGtZcV28oCuPL5nqt+0_A@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Making TEXT NUL-transparent  (Florian Weimer <fweimer@bfk.de>)
Список pgsql-hackers
On Thu, Nov 24, 2011 at 4:54 AM, Florian Weimer <fweimer@bfk.de> wrote:
> By the way, I refuse the notion that UTF-8 strings with embedded NULs
> are "broken".  I can't recall any other system which enforces UTF-8
> well-formedness, but does not permit embedded NULs.

This seems like a key point.  If UTF-8 allows embedded NULs, then a
text field supposedly encoded as UTF-8 ought to allow them, too.

However, our propensity to translate between text and cstring might
make this difficult to implement in practice.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: Notes on implementing URI syntax for libpq
Следующее
От: Alexander Shulgin
Дата:
Сообщение: Re: Notes on implementing URI syntax for libpq