Re: Solaris 8 regression test failure with 8.0.0beta5
От
Tom Lane
Тема
Re: Solaris 8 regression test failure with 8.0.0beta5
Дата
Msg-id
25423.1101365135@sss.pgh.pa.us
Ответ на
Solaris 8 regression test failure with 8.0.0beta5 (Kenneth Marshall)
Список
Дерево обсуждения
Solaris 8 regression test failure with 8.0.0beta5 Kenneth Marshall <ktm@it.is.rice.edu>
Re: Solaris 8 regression test failure with 8.0.0beta5 Tom Lane <tgl@sss.pgh.pa.us>
Re: Solaris 8 regression test failure with 8.0.0beta5 Greg Stark <gsstark@mit.edu>
Re: Solaris 8 regression test failure with 8.0.0beta5 Tom Lane <tgl@sss.pgh.pa.us>
Kenneth Marshall writes:
> Here are the diffs for the regression test failures on Solaris 8.
> The tests work fine on Redhat9 and Redhat Enterprise Linux 3.
... and most other platforms ...
> select 1/0;
> ! ERROR: floating-point exception
> ! DETAIL: An invalid floating-point operation was signaled. This probably means an out-of-range result or an invalid operation, such as division by zero.
This query would invoke the following code in int4div:
if (arg2 == 0) ereport(ERROR, (errcode(ERRCODE_DIVISION_BY_ZERO), errmsg("division by zero")));
result = arg1 / arg2;
I suggest directing some strong words to your compiler vendor. If the
"if" test doesn't complete before the subsequent division causes a trap,
that is not our problem.
regards, tom lane
В списке pgsql-hackers по дате отправления