pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Larry Rosenman <ler@lerctr.org>
To: josh@agliodbs.com
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-sql@postgresql.org
Subject: Re: Math Huh?
Date: 30 May 2002 19:36:57 -0500
Message-ID: <1022805419.356.0.camel@lerlaptop> (raw)
In-Reply-To: <200205301659.43775.josh@agliodbs.com>
References: <200205301629.26161.josh@agliodbs.com>
	<11059.1022802214@sss.pgh.pa.us>
	<200205301659.43775.josh@agliodbs.com>

On Thu, 2002-05-30 at 18:59, Josh Berkus wrote:
> 
> Tom,
> 
> > (yawn) int4 overflow.  Use float or numeric if you want overflow
> > robustness...
> 
> Shouldn't it give me an error?  This does:
> 
> SELECT (255^4)::INT4
Why?  You're doing 3 multiplications, instead of one power.  It has no
idea what the number is. 


> 
> 
> -- 
> -Josh Berkus
> 
> ______AGLIO DATABASE SOLUTIONS___________________________
>                                         Josh Berkus
>    Complete information technology 	josh@agliodbs.com
>     and data management solutions 	(415) 565-7293
>    for law firms, small businesses 	 fax 621-2533
>     and non-profit organizations. 	San Francisco
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org
> 
-- 
Larry Rosenman                     http://www.lerctr.org/~ler
Phone: +1 972-414-9812                 E-Mail: ler@lerctr.org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749




view thread (7+ messages)  latest in thread

Message-ID: <1022805419.356.0.camel@lerlaptop>
Permalink:  ../1022805419.356.0.camel@lerlaptop/
Also on:    postgresql.org/message-id/1022805419.356.0.camel@lerlaptop

 · 

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: ler@lerctr.org, josh@agliodbs.com, tgl@sss.pgh.pa.us
  Subject: Re: Math Huh?
  In-Reply-To: <1022805419.356.0.camel@lerlaptop>

* 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