Re: division by zero

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Eric B(dot)Ridge" <ebr(at)tcdi(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: division by zero
Date: 2003-03-07 19:50:15
Message-ID: 2079.1047066615@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

"Eric B.Ridge" <ebr(at)tcdi(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Eric B.Ridge 2003-03-07 19:58:53 Re: division by zero
Previous Message Tom Lane 2003-03-07 19:43:43 Re: pg_ctl -m fast failing?

Browse pgsql-hackers by date

  From Date Subject
Next Message Eric B.Ridge 2003-03-07 19:58:53 Re: division by zero
Previous Message Bruce Momjian 2003-03-07 19:34:35 Re: division by zero