Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 0640c1b

Browse files
committed
Documentation fix: sum(float4) returns float4, not float8.
The old claim is from my commit d06ebdb 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.
1 parent b2de2a1 commit 0640c1b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

doc/src/sgml/func.sgml

+3-4
Original file line numberDiff line numberDiff line change
@@ -12248,14 +12248,13 @@ NULL baz</literallayout>(3 rows)</entry>
1224812248
<entry>
1224912249
<type>smallint</type>, <type>int</type>,
1225012250
<type>bigint</type>, <type>real</type>, <type>double
12251-
precision</type>, <type>numeric</type>, or
12252-
<type>interval</type>
12251+
precision</type>, <type>numeric</type>,
12252+
<type>interval</type>, or <type>money</>
1225312253
</entry>
1225412254
<entry>
1225512255
<type>bigint</type> for <type>smallint</type> or
1225612256
<type>int</type> arguments, <type>numeric</type> for
12257-
<type>bigint</type> arguments, <type>double precision</type>
12258-
for floating-point arguments, otherwise the same as the
12257+
<type>bigint</type> arguments, otherwise the same as the
1225912258
argument data type
1226012259
</entry>
1226112260
<entry>sum of <replaceable class="parameter">expression</replaceable> across all input values</entry>

0 commit comments

Comments
 (0)