Re: Add error-checking to timestamp_recv

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Add error-checking to timestamp_recv
Дата
Msg-id 3357.1085077071@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Add error-checking to timestamp_recv  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Add error-checking to timestamp_recv  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-patches
I wrote:
> 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.

Having looked at it, I don't like the patch as-is; it misses
timestamptz_recv and doesn't handle the boundary condition
correctly for the HasCTZSet case.  However the details of the latter
are likely to change completely once we finish adopting src/timezone.
I'll make a note to do something with this issue after the TZ patch
is in.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Add error-checking to timestamp_recv
Следующее
От: Jorge Pereira
Дата:
Сообщение: Disabling triggers / constraints