From: Tom Lane Date: Mon, 8 Sep 2014 02:40:41 +0000 (-0400) Subject: Documentation fix: sum(float4) returns float4, not float8. X-Git-Tag: REL9_4_BETA3~55 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b1a7c9e387f77b85aa14eb342f0432fcdb6ddc35;p=postgresql Documentation fix: sum(float4) returns float4, not float8. The old claim is from my commit d06ebdb8d3425185d7e641d15e45908658a0177d of 2000-07-17, but it seems to have been a plain old thinko; sum(float4) has been distinct from sum(float8) since Berkeley days. Noted by KaiGai Kohei. While at it, mention the existence of sum(money), which is also of embarrassingly ancient vintage. --- diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index 77920f4706..8fa8d8f435 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -12246,14 +12246,13 @@ NULL baz(3 rows) smallint, int, bigint, real, double - precision, numeric, or - interval + precision, numeric, + interval, or money bigint for smallint or int arguments, numeric for - bigint arguments, double precision - for floating-point arguments, otherwise the same as the + bigint arguments, otherwise the same as the argument data type sum of expression across all input values