| От | Bruce Momjian |
|---|---|
| Тема | Re: [HACKERS] Divide by zero error on SPARC/Linux. |
| Дата | |
| Msg-id | 199806230416.AAA03437@candle.pha.pa.us обсуждение исходный текст |
| Ответ на | Re: [HACKERS] Divide by zero error on SPARC/Linux. (Keith Parks <emkxp01@mtcc.demon.co.uk>) |
| Список | pgsql-hackers |
> > Bruce, > > That's what I would have half expected too but am I actually using > any floating point arithmetic? > > The function called is int4div() which simply does a, return (arg1/arg2), > so I would have expected integer arithmetic. > > If I cast to float I get:- > > postgres=> select 1::float8/0::float8; > ERROR: float8div: divide by zero error > postgres=> I recommend you put debugs around where it is crashing, and the reproduce it in a C program, with the same signal() call to catch it, and see if it works. -- Bruce Momjian | 830 Blythe Avenue maillist@candle.pha.pa.us | Drexel Hill, Pennsylvania 19026 + If your life is a hard drive, | (610) 353-9879(w) + Christ can be your backup. | (610) 853-3000(h)
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера