diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2014-09-07 22:40:41 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2014-09-07 22:41:05 -0400 |
commit | 61d7c6d67826e04f0a6fe2ab3365160381fdde3f (patch) | |
tree | bbff03ed4fb388b5ef2405cbdab875d32079995a | |
parent | 81bffe63c09aac9e64932250082df86bbdc9fd13 (diff) | |
download | postgresql-61d7c6d67826e04f0a6fe2ab3365160381fdde3f.tar.gz postgresql-61d7c6d67826e04f0a6fe2ab3365160381fdde3f.zip |
Documentation fix: sum(float4) returns float4, not float8.
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.
-rw-r--r-- | doc/src/sgml/func.sgml | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index 82238f70080..6366b17a648 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -10697,14 +10697,13 @@ SELECT NULLIF(value, '(none)') ... <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> |