Same rows, different SUM

· Radim Marek · June 28, 2026, 7:44 p.m.
Summary
This blog post by Radim Marek discusses the complexities and non-determinism of summing floating-point numbers in databases, particularly in contexts where parallel processing is involved. It delves into how floating-point arithmetic can yield different results across multiple runs due to the order of operations and the way parallel sums are executed. The author urges developers to consider using exact numeric types for total calculations that require precision, emphasizing that while parallelism can improve performance, it can also expose the inherent inaccuracies of floating-point calculations.
AUTHOR
Sponsored
Zulip logo Zulip
Organized team chat for people who take work seriously. Topic-based threading keeps conversations focused.
Try Zulip
Become a sponsor →