| От | 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
|
| Список | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера