Re: Add error-checking to timestamp_recv

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Add error-checking to timestamp_recv
Дата
Msg-id 2665.1085074120@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Add error-checking to timestamp_recv  (Stephen Frost <sfrost@snowman.net>)
Ответы Re: Add error-checking to timestamp_recv  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-patches
Stephen Frost <sfrost@snowman.net> writes:
>> How many datatype have this issue?

> I don't think that many do..  A number of them already check incoming
> values where it's possible for them to not be valid.

In general we do check incoming binary values to ensure minimal
validity.  I think when I did timestamp_recv I was thinking it was
just like int8 or float8 (respectively), in that any bit pattern is
potentially legal; I had forgotten about the range restrictions.

I haven't looked at the details of Stephen's patch (and can't till the
archives site comes back up) but the idea is probably sound.

            regards, tom lane

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

Предыдущее
От: Stephen Frost
Дата:
Сообщение: Re: Add error-checking to timestamp_recv
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Add error-checking to timestamp_recv