Re: division by zero - Mailing list pgsql-general

From Tom Lane
Subject Re: division by zero
Date
Msg-id 2079.1047066615@sss.pgh.pa.us
Whole thread Raw
In response to division by zero  (Eric B.Ridge <ebr@tcdi.com>)
Responses Re: division by zero  (Eric B.Ridge <ebr@tcdi.com>)
List pgsql-general
"Eric B.Ridge" <ebr@tcdi.com> writes:
> I admit, I suck at math, but I really thought postgres would ERROR on
> this:

> foo=# select 1/0;

There's something wrong with your platform, I think.  I get an error on
both HPUX and Red Hat Linux.  What platform is this?  and what PG
version?

z=# select 1/0;
ERROR:  floating point exception! The last floating point operation either exceeded legal ranges or was a divide by
zero
z=#

            regards, tom lane

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: pg_ctl -m fast failing?
Next
From: Eric B.Ridge
Date:
Subject: Re: division by zero