From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Дейтер Александр Валериевич <tiamat(at)komi(dot)mts(dot)ru> |
Cc: | pgsql-bugs(at)postgresql(dot)org |
Subject: | Re: PostgreSQL 8.1.5: regression tests fail on sparc |
Date: | 2006-11-24 22:06:09 |
Message-ID: | 27188.1164405969@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
=?KOI8-R?Q?=E4=C5=CA=D4=C5=D2_=E1=CC=C5=CB=D3=C1=CE=C4=D2_=F7=C1?= =?KOI8-R?Q?=CC=C5=D2=C9=C5=D7=C9=DE?= <tiamat(at)komi(dot)mts(dot)ru> writes:
> PostgreSQL 8.1.5 have a problem with division by zero on sparc.
> Solaris 9 sparc, gcc 4.0.2, 4.1.1:
We've not heard that reported before, so I wonder whether there's not
something broken about your compiler or libc.
The code in question is in int2div() in utils/adt/int.c:
if (arg2 == 0)
ereport(ERROR,
(errcode(ERRCODE_DIVISION_BY_ZERO),
errmsg("division by zero")));
result = arg1 / arg2;
It's a bit hard to see how a compiler could get this wrong, but maybe
it's thinking it can evaluate the division before calling errfinish?
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | tomas | 2006-11-25 05:55:30 | Re: BUG #2776: unable to access created user directory |
Previous Message | Tom Lane | 2006-11-24 21:58:03 | Re: BUG #2779: Making an inherited table to a view causes could not open relation error in base table |