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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "MATSUDA, Daiki" <d(dot)matuda(at)gmail(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #4743: potential bug between int and uint
Date: 2009-03-31 14:01:22
Message-ID: 8885.1238508082@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

"MATSUDA, Daiki" <d(dot)matuda(at)gmail(dot)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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Peter Eisentraut 2009-03-31 14:45:10 Re: shared_buffers/SHMMAX defaults?
Previous Message Heikki Linnakangas 2009-03-31 08:37:58 Re: BUG #4742: wrong resultset instead of syntax error