Skip to content

Commit 61d7c6d

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 81bffe6 commit 61d7c6d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

doc/src/sgml/func.sgml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10697,14 +10697,13 @@ SELECT NULLIF(value, '(none)') ...
1069710697
<entry>
1069810698
<type>smallint</type>, <type>int</type>,
1069910699
<type>bigint</type>, <type>real</type>, <type>double
10700-
precision</type>, <type>numeric</type>, or
10701-
<type>interval</type>
10700+
precision</type>, <type>numeric</type>,
10701+
<type>interval</type>, or <type>money</>
1070210702
</entry>
1070310703
<entry>
1070410704
<type>bigint</type> for <type>smallint</type> or
1070510705
<type>int</type> arguments, <type>numeric</type> for
10706-
<type>bigint</type> arguments, <type>double precision</type>
10707-
for floating-point arguments, otherwise the same as the
10706+
<type>bigint</type> arguments, otherwise the same as the
1070810707
argument data type
1070910708
</entry>
1071010709
<entry>sum of <replaceable class="parameter">expression</replaceable> across all input values</entry>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy