Re: BUG #4743: potential bug between int and uint

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #4743: potential bug between int and uint
Дата
Msg-id 8885.1238508082@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #4743: potential bug between int and uint  ("MATSUDA, Daiki" <d.matuda@gmail.com>)
Список pgsql-bugs
"MATSUDA, Daiki" <d.matuda@gmail.com> writes:
> -       int                     count = 0;
> -       int                     subcount = 0;
> +       uint32          count = 0;
> +       int32           subcount = 0;

This is really unimportant, since neither counter could possibly
approach the point of overflow.  (If they could, we'd need to install
active defenses against that, not just tweak the datatypes...)

            regards, tom lane

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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Re: BUG #4742: wrong resultset instead of syntax error
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: shared_buffers/SHMMAX defaults?