Re: PostgreSQL 8.1.5: regression tests fail on sparc

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: PostgreSQL 8.1.5: regression tests fail on sparc
Дата
Msg-id 27188.1164405969@sss.pgh.pa.us
обсуждение исходный текст
Ответ на PostgreSQL 8.1.5: regression tests fail on sparc  (Дейтер Александр Валериевич <tiamat@komi.mts.ru>)
Список pgsql-bugs
Дейтер Александр Валериевич <tiamat@komi.mts.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("divisionby 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


В списке pgsql-bugs по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BUG #2779: Making an inherited table to a view causes could not open relation error in base table
Следующее
От: tomas@tuxteam.de
Дата:
Сообщение: Re: BUG #2776: unable to access created user directory