]> granicus.if.org Git - postgresql/commitdiff
Documentation fix: sum(float4) returns float4, not float8.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 8 Sep 2014 02:40:41 +0000 (22:40 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 8 Sep 2014 02:40:51 +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 77920f4706f91a6a1d709748b3a3c9f4f12b639d..8fa8d8f435d3e9efc2c0a1e29ae49c1f0577bbef 100644 (file)
@@ -12246,14 +12246,13 @@ NULL baz</literallayout>(3 rows)</entry>
       <entry>
        <type>smallint</type>, <type>int</type>,
        <type>bigint</type>, <type>real</type>, <type>double
-       precision</type>, <type>numeric</type>, or
-       <type>interval</type>
+       precision</type>, <type>numeric</type>,
+       <type>interval</type>, or <type>money</>
       </entry>
       <entry>
        <type>bigint</type> for <type>smallint</type> or
        <type>int</type> arguments, <type>numeric</type> for
-       <type>bigint</type> arguments, <type>double precision</type>
-       for floating-point arguments, otherwise the same as the
+       <type>bigint</type> arguments, otherwise the same as the
        argument data type
       </entry>
       <entry>sum of <replaceable class="parameter">expression</replaceable> across all input values</entry>