Re: \0 and IllegalArgumentException

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: \0 and IllegalArgumentException
Дата
Msg-id 16500.1099064198@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: \0 and IllegalArgumentException  (Vadim Nasardinov <vadimn@redhat.com>)
Список pgsql-jdbc
Vadim Nasardinov <vadimn@redhat.com> writes:
> I think you do have a point though when you say that \0 should be
> allowed (and handled properly).

Don't hold your breath.

Moving away from the zero-terminated-string approach would require
protocol changes (IIRC, the v3 protocol still depends on that in places),
a massive rewrite effort to change every datatype's I/O functions, plus
writing our own locale library because we couldn't use strcoll()
anymore.  And that's just the impacts I can think of before having
had any coffee ;-)

While the private locale library might eventually happen anyway, the
other two things are still daunting, mainly because they break a ton of
user code not only the backend.

Basically, the bang for the buck doesn't seem to be there...

            regards, tom lane

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

Предыдущее
От: Vadim Nasardinov
Дата:
Сообщение: Re: \0 and IllegalArgumentException
Следующее
От: Markus Schaber
Дата:
Сообщение: Re: PGobject overhaul (was Re: tightening up on use of oid