Commit 0640c1bf authored by Tom Lane's avatar Tom Lane

Documentation fix: sum(float4) returns float4, not float8.

The old claim is from my commit d06ebdb8 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.
parent b2de2a11
...@@ -12248,14 +12248,13 @@ NULL baz</literallayout>(3 rows)</entry> ...@@ -12248,14 +12248,13 @@ NULL baz</literallayout>(3 rows)</entry>
<entry> <entry>
<type>smallint</type>, <type>int</type>, <type>smallint</type>, <type>int</type>,
<type>bigint</type>, <type>real</type>, <type>double <type>bigint</type>, <type>real</type>, <type>double
precision</type>, <type>numeric</type>, or precision</type>, <type>numeric</type>,
<type>interval</type> <type>interval</type>, or <type>money</>
</entry> </entry>
<entry> <entry>
<type>bigint</type> for <type>smallint</type> or <type>bigint</type> for <type>smallint</type> or
<type>int</type> arguments, <type>numeric</type> for <type>int</type> arguments, <type>numeric</type> for
<type>bigint</type> arguments, <type>double precision</type> <type>bigint</type> arguments, otherwise the same as the
for floating-point arguments, otherwise the same as the
argument data type argument data type
</entry> </entry>
<entry>sum of <replaceable class="parameter">expression</replaceable> across all input values</entry> <entry>sum of <replaceable class="parameter">expression</replaceable> across all input values</entry>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment