Skip to content

Commit 1c8b88a

Browse files
committed
Improve v10 release notes' discussion of money operator changes.
Mention the rounding behavioral change for money/int8. Discussion: https://postgr.es/m/20170519164653.29941.19098@wrigleys.postgresql.org
1 parent eac0a6c commit 1c8b88a

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

doc/src/sgml/release-10.sgml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1929,9 +1929,19 @@
19291929
2017-01-17 [323b96aa3] Register missing money operators in system catalogs
19301930
-->
19311931
<para>
1932-
Add <link linkend="datatype-money"><type>MONEY</></> operators
1933-
for multiplication and division with <type>INT8</> values (Peter
1934-
Eisentraut)
1932+
Add operators for multiplication and division
1933+
of <link linkend="datatype-money"><type>money</></link> values
1934+
with <type>int8</> values (Peter Eisentraut)
1935+
</para>
1936+
1937+
<para>
1938+
Previously such cases would result in converting the <type>int8</>
1939+
values to <type>float8</> and then using
1940+
the <type>money</>-and-<type>float8</> operators. The new behavior
1941+
avoids possible precision loss. But note that division
1942+
of <type>money</> by <type>int8</> now truncates the quotient, like
1943+
other integer-division cases, while the previous behavior would have
1944+
rounded.
19351945
</para>
19361946
</listitem>
19371947

@@ -1941,7 +1951,7 @@
19411951
2016-09-14 [656df624c] Add overflow checks to money type input function
19421952
-->
19431953
<para>
1944-
More strictly check the <type>MONEY</> type for overflow operations
1954+
More strictly check the <type>money</> type for overflow operations
19451955
(Peter Eisentraut)
19461956
</para>
19471957
</listitem>

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