Re: non-standard escapes in string literals

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: non-standard escapes in string literals
Дата
Msg-id 22721.1020464944@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: non-standard escapes in string literals  (Florian Weimer <Weimer@CERT.Uni-Stuttgart.DE>)
Список pgsql-hackers
Florian Weimer <Weimer@CERT.Uni-Stuttgart.DE> writes:
> BTW, what about embedded NUL characters in text strings? ;-)

There's approximately zero chance of that happening in the foreseeable
future.  Since null-terminated strings are the API for both the parser
and all datatype I/O routines, there'd have to be a lot of code changed
to support this.  To take just one example: strcoll() uses
null-terminated strings, therefore we'd not be able to support
locale-aware text comparisons unless we write our own replacement for
the entire locale library.  (Which we might do someday, but it's not
a trivial task.)

The amount of pain involved seems to far outweigh the gain...
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: HEADS UP: Win32/OS2/BeOS native ports
Следующее
От: mlw
Дата:
Сообщение: Re: HEADS UP: Win32/OS2/BeOS native ports