Documentation fix: sum(float4) returns float4, not float8.
authorTom Lane
Mon, 8 Sep 2014 02:40:41 +0000 (22:40 -0400)
committerTom Lane
Mon, 8 Sep 2014 02:40:41 +0000 (22:40 -0400)
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.

doc/src/sgml/func.sgml

index e50408cb977d95a86851bc79b521ce1356f8fe33..84e58944ce203f805921f0a9ef53d26919bd1f8e 100644 (file)
@@ -12248,14 +12248,13 @@ NULL baz(3 rows)
       
        smallintint,
        bigintrealdouble
-       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