Re: Documentation of maximum input string lengths

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Documentation of maximum input string lengths
Дата
Msg-id 20937.1030294554@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Documentation of maximum input string lengths  (Gavin Sherry <swm@linuxworld.com.au>)
Список pgsql-hackers
Gavin Sherry <swm@linuxworld.com.au> writes:
> So, the question is this: should there be documentation of the maximum
> string length of a data structure so that application programmers can
> provide string length validation?

I don't think so; that's just going to make it harder to fix things if,
say, one day we need to support longer timezone names than we do today.
The more places that know about these limits the worse it will be.

The date buffer overrun bug was a backend bug, nothing more nor less,
and it was *not* the frontends' responsibility to guard against.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: A configure.in patch check (fwd)
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: DBD::Pg ...