pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Achilleus Mantzios <achill@matrix.gatewaynet.com>
To: Josh Berkus <josh@agliodbs.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Math Huh?
Date: Fri, 31 May 2002 09:36:53 +0300 (EEST)
Message-ID: <Pine.LNX.4.44.0205310935330.26009-100000@matrix.gatewaynet.com> (raw)
In-Reply-To: <200205301629.26161.josh@agliodbs.com>

On Thu, 30 May 2002, Josh Berkus wrote:

> Folks,
> 
> I'll let this session speak for itself:
> 
> jwnet=> select version();
>                             version
> ---------------------------------------------------------------
>  PostgreSQL 7.2.1 on i686-pc-linux-gnu, compiled by GCC 2.95.3
> (1 row)
> 
> jwnet=> select (255 * 255 * 255 * 255);
>  ?column?
> -----------
>  -66716671
> (1 row)
> 
> So, a bug, or what?

Dear Josh, i686-pc-linux-gnu
            ^^^
the 686 arch is the answer.

dynacom=# select (255::int8 * 255 * 255 * 255);
  ?column?
------------
 4228250625
(1 row)
 
dynacom=#

> 
> 
> 

-- 
Achilleus Mantzios
S/W Engineer
IT dept
Dynacom Tankers Mngmt
tel:    +30-10-8981112
fax:    +30-10-8981877
email:  achill@matrix.gatewaynet.com
        mantzios@softlab.ece.ntua.gr




view thread (7+ messages)

Message-ID: <Pine.LNX.4.44.0205310935330.26009-100000@matrix.gatewaynet.com>
Permalink:  ../Pine.LNX.4.44.0205310935330.26009-100000@matrix.gatewaynet.com/
Also on:    postgresql.org/message-id/Pine.LNX.4.44.0205310935330.26009-100000@matrix.gatewaynet.com

 · 

reply

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: achill@matrix.gatewaynet.com, josh@agliodbs.com
  Subject: Re: Math Huh?
  In-Reply-To: <Pine.LNX.4.44.0205310935330.26009-100000@matrix.gatewaynet.com>

* 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