From: Tom Lane <tgl@sss.pgh.pa.us>
To: josh@agliodbs.com
Cc: pgsql-sql@postgresql.org
Subject: Re: Math Huh?
Date: Thu, 30 May 2002 19:43:34 -0400
Message-ID: <11059.1022802214@sss.pgh.pa.us> (raw)
In-Reply-To: <200205301629.26161.josh@agliodbs.com>
References: <200205301629.26161.josh@agliodbs.com>
Josh Berkus <josh@agliodbs.com> writes:
> jwnet=> select (255 * 255 * 255 * 255);
> ?column?
> -----------
> -66716671
> (1 row)
> So, a bug, or what?
(yawn) int4 overflow. Use float or numeric if you want overflow
robustness...
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, josh@agliodbs.com
Subject: Re: Math Huh?
In-Reply-To: <11059.1022802214@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox