Skip site navigation (1) Skip section navigation (2)

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: (view raw, whole thread or download thread mbox)
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

pgsql-bugs by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group