Re: BUG #4743: potential bug between int and uint - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #4743: potential bug between int and uint
Date
Msg-id 8885.1238508082@sss.pgh.pa.us
Whole thread Raw
In response to BUG #4743: potential bug between int and uint  ("MATSUDA, Daiki" <d.matuda@gmail.com>)
List 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 by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: BUG #4742: wrong resultset instead of syntax error
Next
From: Peter Eisentraut
Date:
Subject: Re: shared_buffers/SHMMAX defaults?