Commit Graph

279 Commits (d699687b329e031cd90e967b39c3fd8a53ef8208)

Author SHA1 Message Date
Dean Rasheed d699687b32 Extend int128.h to support more numeric code. 1 month ago
Tom Lane 7374b3a536 Allow width_bucket()'s "operand" input to be NaN. 2 months ago
Tom Lane ea06263c4a Doc: improve documentation about width_bucket(). 3 months ago
Bruce Momjian 50e6eb731d Update copyright for 2025 9 months ago
Dean Rasheed 97173536ed Add a planner support function for numeric generate_series(). 10 months ago
Dean Rasheed 9428c001f6 Speed up numeric division by always using the "fast" algorithm. 12 months ago
Dean Rasheed 7cac6307a4 Fix compiler warning in mul_var_short(). 1 year ago
Nathan Bossart 9e9a2b7031 Remove dependence on -fwrapv semantics in a few places. 1 year ago
Dean Rasheed 8dc28d7eb8 Optimise numeric multiplication using base-NBASE^2 arithmetic. 1 year ago
Dean Rasheed c4e44224cf Extend mul_var_short() to 5 and 6-digit inputs. 1 year ago
Peter Eisentraut c8e2d422fd Remove TRACE_SORT macro 1 year ago
Dean Rasheed 0dcf753bd8 Improve the numeric width_bucket() computation. 1 year ago
Dean Rasheed ca481d3c9a Optimise numeric multiplication for short inputs. 1 year ago
Dean Rasheed 1ff39f4ff2 Fix scale clamping in numeric round() and trunc(). 1 year ago
Dean Rasheed e6341323a8 Add functions to generate random numbers in a specified range. 1 year ago
Peter Eisentraut dbbca2cf29 Remove unused #include's from backend .c files 2 years ago
Bruce Momjian 29275b1d17 Update copyright for 2024 2 years ago
Peter Eisentraut c1b9e1e56d Add numeric_int8_opt_error() to optionally suppress errors 2 years ago
David Rowley 0c882a2988 Optimize various aggregate deserialization functions, take 2 2 years ago
David Rowley 4f3b56eea2 Revert "Optimize various aggregate deserialization functions" 2 years ago
David Rowley 608fd198de Optimize various aggregate deserialization functions 2 years ago
Tom Lane a2a0c7c29e Further tweaking of width_bucket() edge cases. 2 years ago
Dean Rasheed faff8f8e47 Allow underscores in integer and numeric constants. 3 years ago
Dean Rasheed b2d4792890 Make int64_div_fast_to_numeric() more robust. 3 years ago
Dean Rasheed 0736fc1ceb Clarify the choice of rscale in numeric_sqrt(). 3 years ago
Dean Rasheed 9a84f2947b Ensure that numeric.c compiles with other NBASE values. 3 years ago
Dean Rasheed 6dfacbf72b Add non-decimal integer support to type numeric. 3 years ago
Dean Rasheed 0aa38db56b Optimise numeric division for 3 and 4 base-NBASE digit divisors. 3 years ago
Bruce Momjian c8e1ba736b Update copyright for 2023 3 years ago
Peter Eisentraut 75f49221c2 Static assertions cleanup 3 years ago
Tom Lane ccff2d20ed Convert a few datatype input functions to use "soft" error reporting. 3 years ago
Dean Rasheed 40c7fcbbed Improve the accuracy of numeric power() for integer exponents. 3 years ago
Peter Eisentraut f14aad5169 Remove unnecessary uses of Abs() 3 years ago
Peter Geoghegan a601366a46 Harmonize more parameter names in bulk. 3 years ago
Tom Lane 23e7b38bfe Pre-beta mechanical code beautification. 3 years ago
Tom Lane 46ab07ffda Clean up assorted failures under clang's -fsanitize=undefined checks. 4 years ago
Dean Rasheed d1b307eef2 Optimise numeric division for one and two base-NBASE digit divisors. 4 years ago
Dean Rasheed d996d648f3 Simplify the inner loop of numeric division in div_var(). 4 years ago
Dean Rasheed e3d41d08a1 Apply auto-vectorization to the inner loop of div_var_fast(). 4 years ago
Bruce Momjian 27b77ecf9f Update copyright for 2022 4 years ago
Peter Eisentraut 89d1c15d64 Remove unused includes 4 years ago
Dean Rasheed e54a758d24 Fix corner-case loss of precision in numeric_power(). 4 years ago
Dean Rasheed 2642df9fac Adjust the integer overflow tests in the numeric code. 4 years ago
Dean Rasheed 226ec49ffd Fix division-by-zero error in to_char() with 'EEEE' format. 4 years ago
Dean Rasheed 4dd5ce2fd9 Fix corner-case errors and loss of precision in numeric_power(). 4 years ago
Dean Rasheed 085f931f52 Allow numeric scale to be negative or greater than precision. 4 years ago
Dean Rasheed e7fc488ad6 Fix numeric_mul() overflow due to too many digits after decimal point. 4 years ago
Dean Rasheed f025f2390e Prevent numeric overflows in parallel numeric aggregates. 4 years ago
Peter Eisentraut c302a61390 Error message refactoring 4 years ago
Peter Eisentraut a2da77cdb4 Change return type of EXTRACT to numeric 5 years ago