Re: Don't understand error?

Поиск
Список
Период
Сортировка
От James David Smith
Тема Re: Don't understand error?
Дата
Msg-id CAMu32ACqnWLGTEy9qD0=pBmoP4NiDpOQsxrQHHY2Z5a1Qf+-Dw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Don't understand error?  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Don't understand error?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-novice
Hi Tom,

Yes, I thought the same. Glad to know that I might be along the right
lines. I've started taking parameters out one-by-one to try and find
the culprit. Yes, there are a variety of numbers stored as NUMERIC in
various places. For example:

0.23423424234
5.6434535
10.2131

etc.

Then there are various multiplications and divisions occurring in
fairly complex formulas.

I guess I just slowly work through the code and try to figure out
which bit of the maths is causing the error?

Cheers

James


On 14 April 2014 14:58, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> James David Smith <james.david.smith@gmail.com> writes:
>> When I run my SQL for 50 people it's fine. 1 person is fine. A
>> thousand people it's fine. But when I try and run it for the whole
>> dataset I'm given this error:
>
>> ERROR: value out of range: underflow
>> ****************Error *******************
>> Error: Value out of range: underflow
>> SQL state: 22003
>
> This looks like an arithmetic problem not a SQL problem.  Is your
> calculation working with very small floating-point values anywhere?
>
>                         regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Don't understand error?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Don't understand error?