Re: Making TEXT NUL-transparent

Поиск
Список
Период
Сортировка
От Florian Weimer
Тема Re: Making TEXT NUL-transparent
Дата
Msg-id 82zkflpz0i.fsf@mid.bfk.de
обсуждение исходный текст
Ответ на Re: Making TEXT NUL-transparent  (Pavel Stehule <pavel.stehule@gmail.com>)
Ответы Re: Making TEXT NUL-transparent  (Alexander Shulgin <ash@commandprompt.com>)
Список pgsql-hackers
* Pavel Stehule:

>> 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.

> I have a different question. What is reason for embedded NULs inside
> strings?

The source system does not enforce that constraint, so from time to
time, such data slips through.  I don't know why it's there in the first
place, and I have no control over the original data source.  Usually,
it's okay to silently strip NUL bytes; it's just a bit awkward.

--
Florian Weimer                <fweimer@bfk.de>
BFK edv-consulting GmbH       http://www.bfk.de/
Kriegsstraße 100              tel: +49-721-96201-1
D-76133 Karlsruhe             fax: +49-721-96201-99


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

Предыдущее
От: Rod Taylor
Дата:
Сообщение: Time bug with small years
Следующее
От: Lars Kanis
Дата:
Сообщение: Re: [PATCH] PostgreSQL fails to build with 32bit MinGW-w64