| От | Tom Lane |
|---|---|
| Тема | Re: what data type should be returned by sum(float4) |
| Дата | |
| Msg-id | 31561.1410142831@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | what data type should be returned by sum(float4) (Kouhei Kaigai <kaigai@ak.jp.nec.com>) |
| Список | pgsql-hackers |
Kouhei Kaigai <kaigai@ak.jp.nec.com> writes:
> The documentation says that return type of sum(expression) is...
> bigint for smallint or int arguments, numeric for bigint arguments,
> double precision for floating-point arguments, otherwise the same
> as the argument data type
> Does it expect sum(float4) returns float8, doesn't it?
Good catch! [ digs in commit history... ] It looks like the claim
that sum(float4) produces float8 was introduced in my commit
d06ebdb8d3425185d7e641d15e45908658a0177d of 2000-07-17; but it seems
to have been an outright error, because sum(float4) was a separate
aggregate long before that. Possibly a copy-and-paste mistake from
some other aggregate? I sure don't remember.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера