| От | Tom Lane |
|---|---|
| Тема | Re: [SQL] avg() on numeric ? |
| Дата | |
| Msg-id | 29406.945479437@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: [SQL] avg() on numeric ? (wieck@debis.com (Jan Wieck)) |
| Список | pgsql-sql |
wieck@debis.com (Jan Wieck) writes:
> Looks to me there's something wrong with the adjustment of
> actual computation and/or display precision during longer
> taking aggregates. I know where to look at - tnx anyway.
It doesn't necessarily take long; Zot O'Connor posted this example
in late October:
create table example(other decimal(4,4));
CREATE
insert into example (other) values(3.9);
ERROR: overflow on numeric ABS(value) >= 10^0 for field with precision 4 scale 4
insert into example (other) values(0.0);
ERROR: overflow on numeric ABS(value) >= 10^0 for field with precision 4 scale 4
which still fails in current sources.
regards, tom lane
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера