Re: [GENERAL] Support for \u0000?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [GENERAL] Support for \u0000?
Дата
Msg-id 8239.1500489054@sss.pgh.pa.us
обсуждение исходный текст
Ответ на [GENERAL] Support for \u0000?  (Matthew Byrne <mjw.byrne@gmail.com>)
Ответы Re: [GENERAL] Support for \u0000?
Список pgsql-general
Matthew Byrne <mjw.byrne@gmail.com> writes:
> Are there any plans to support \u0000 in JSONB and, relatedly, UTF code
> point 0 in TEXT?

No.  It's basically never going to happen because of the widespread use
of C strings (nul-terminated strings) inside the backend.  Making \0 a
legal member of strings would break all those internal APIs, requiring
touching far more code than anyone would want to do.  It'd likely break
a great deal of client-side code as well.

            regards, tom lane


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

Предыдущее
От: Thom Brown
Дата:
Сообщение: Re: [GENERAL] ~/.psqlrc file is ignored
Следующее
От: Jerry Sievers
Дата:
Сообщение: Re: [GENERAL] Two-phase commit case studies