Commit Graph

59 Commits (d72f6c75038d8d37e64a29a04b911f728044d83b)

Author SHA1 Message Date
Tom Lane d72f6c7503 Reimplement NUMERIC datatype using base-10000 arithmetic; also improve 23 years ago
Tom Lane 2a1ef30b57 Prevent infinite loop in ln_var() due to roundoff error. 23 years ago
Tom Lane 31e69ccb21 Add explicit tests for division by zero to all user-accessible integer 23 years ago
Bruce Momjian bab3d29fba This patch adds some missing functions for float8 math operations, 23 years ago
Tom Lane b813d143ae Alter scale selection for NUMERIC division and transcendental functions 23 years ago
Tom Lane b26dfb9522 Extend pg_cast castimplicit column to a three-way value; this allows us 23 years ago
Bruce Momjian e50f52a074 pgindent run. 23 years ago
Bruce Momjian 97ac103289 Remove sys/types.h in files that include postgres.h, and hence c.h, 23 years ago
Tom Lane 5cabcfccce Modify array operations to include array's element type OID in the 23 years ago
Bruce Momjian b4a5fa4518 Remove MAX/MIN() macros, use c.h Max/Min() instead. 24 years ago
Tom Lane 07009651ce Repair roundoff-error problem for stddev/variance results near zero, 24 years ago
Bruce Momjian ea08e6cd55 New pgindent run with fixes suggested by Tom. Patch manually reviewed, 24 years ago
Bruce Momjian 6783b2372e Another pgindent run. Fixes enum indenting, and improves #endif 24 years ago
Bruce Momjian b81844b173 pgindent run on all C files. Java run to follow. initdb/regression 24 years ago
Tom Lane e482dcb0a4 Make selectivity routines cope gracefully with NaNs, infinities, and 24 years ago
Thomas G. Lockhart 3e1beda2cd Implement precision support for timestamp and time, both with and without 24 years ago
Tom Lane 5f7c2bdb53 sum() on int2 and int4 columns now uses an int8, not numeric, accumulator 24 years ago
Bruce Momjian ba17165f55 This adds unary plus capability. No grammar changes, per Tom's request. 25 years ago
Tom Lane 2792374cff Ensure that btree sort ordering functions and boolean comparison operators 25 years ago
Tom Lane 83c94a886c Another try at making numeric MODULO operator produce the right answer. 25 years ago
Bruce Momjian 0686d49da0 Remove dashes in comments that don't need them, rewrap with pgindent. 25 years ago
Bruce Momjian 9e1552607a pgindent run. Make it all clean. 25 years ago
Tom Lane 286d1fc382 Fix numeric modulo operator for case of fractional right argument. 25 years ago
Tom Lane 5cf81b3c06 Silence compiler warning. 25 years ago
Tom Lane a27b691e29 Ensure that all uses of <ctype.h> functions are applied to unsigned-char 25 years ago
Tom Lane 463f1f5cda Convert all remaining float4 and float8 functions to new fmgr style. 25 years ago
Tom Lane 1ebe1da296 bpchar, varchar, bytea, numeric are toastable --- if you initdb, which 26 years ago
Tom Lane bec98a31c5 Revise aggregate functions per earlier discussions in pghackers. 26 years ago
Bruce Momjian df43800fc8 Clean up #include's. 26 years ago
Peter Eisentraut 44d1abebb4 Big warnings cleanup for Solaris/GCC. Down to about 40 now, but 26 years ago
Tom Lane f2d1205322 Another batch of fmgr updates. I think I have gotten all old-style 26 years ago
Tom Lane 48165ec226 Latest round of fmgr updates. All functions with bool,char, or int2 26 years ago
Bruce Momjian 52f77df613 Ye-old pgindent run. Same 4-space tabs. 26 years ago
Tom Lane e631df3c1b Extend numeric_round and numeric_trunc to accept negative scale inputs 26 years ago
Tom Lane 9110b33f46 Add numeric <-> int8 and numeric <-> int2 conversion functions, as well 26 years ago
Tom Lane 08195a43f3 Fix bugs in NUMERIC ceil() and floor() functions. ceil(0) returned 1, 26 years ago
Tom Lane d58fa7611b numeric_in accepts exponents; numeric to int4 rounds; float4/8 to numeric 26 years ago
Tom Lane 3cb8c8da68 Clean up problems with rounding/overflow code in NUMERIC, particularly 26 years ago
Bruce Momjian b78769fda2 Fix it's and its to be correct. 26 years ago
Jan Wieck b5c4b77283 Added nbtree operator class for NUMERIC 26 years ago
Bruce Momjian 3406901a29 Move some system includes into c.h, and remove duplicates. 27 years ago
Bruce Momjian 4b2c2850bf Clean up #include in /include directory. Add scripts for checking includes. 27 years ago
Bruce Momjian 0cf1b79528 Cleanup of /include #include's, for 6.6 only. 27 years ago
Bruce Momjian fcff1cdf4e Another pgindent run. Sorry folks. 27 years ago
Bruce Momjian 4eadfe8754 Make 0x007f -> (unsigned)0x7f to make pgindent happy. 27 years ago
Bruce Momjian 07842084fe pgindent run over code. 27 years ago
Jan Wieck bb885dd1a1 Check for NUMERIC overflow a second time after rounding 27 years ago
Thomas G. Lockhart 84e832a802 Use sprintf() to convert float8 to a string during conversion to numeric. 27 years ago
Bruce Momjian 8930699cd6 src/backend/utils/adt/numeric.c fails to compile due to a string having 27 years ago
Bruce Momjian 6724a50787 Change my-function-name-- to my_function_name, and optimizer renames. 27 years ago