Commit Graph

106 Commits (abd183e4e718a79ad35e6a53b45155cec6bf8ce3)

Author SHA1 Message Date
Tom Lane 6244c2dfff Fix stddev_pop(numeric) and var_pop(numeric), which were incorrectly producing 19 years ago
Tom Lane 23347231a5 Tweak the API for per-datatype typmodin functions so that they are passed 19 years ago
Tom Lane e17e40f783 Allow numeric_fac() to be interrupted, since it can take quite a while for 19 years ago
Tom Lane 31edbadf4a Downgrade implicit casts to text to be assignment-only, except for the ones 19 years ago
Neil Conway ade493e02d Add a hash function for "numeric". Mark the equality operator for 19 years ago
Tom Lane 234a02b2a8 Replace direct assignments to VARATT_SIZEP(x) with SET_VARSIZE(x, len). 19 years ago
Bruce Momjian 89a624439e Create AVG() aggregates for int8 and NUMERIC which do not compute X^2, 19 years ago
Neil Conway cf57ef4e50 Implement width_bucket() for the float8 data type. 19 years ago
Bruce Momjian 29dccf5fe0 Update CVS HEAD for 2007 copyright. Back branches are typically not 19 years ago
Tom Lane 5725b9d9af Support type modifiers for user-defined types, and pull most knowledge 19 years ago
Bruce Momjian f99a569a2e pgindent run for 8.2. 19 years ago
Bruce Momjian 0a42adcc32 Improve numeric overflow error message. 19 years ago
Tom Lane ae643747b1 Fix a passel of recently-committed violations of the rule 'thou shalt 20 years ago
Neil Conway 0ebf1cc834 Implement 4 new aggregate functions from SQL2003. Specifically: var_pop(), 20 years ago
Bruce Momjian f2f5b05655 Update copyright for 2006. Update scripts. 20 years ago
Bruce Momjian e7a9ccdb6c I think that NUMERIC datatype has a problem in the performance that 20 years ago
Bruce Momjian 514d0f4db6 Update regression error message for NUMERIC range overflow. Display "1" 20 years ago
Bruce Momjian cdc15b24be Improve error message when NUMERIC precision is exceeded. 20 years ago
Bruce Momjian 436a2956d8 Re-run pgindent, fixing a problem where comment lines after a blank 20 years ago
Tom Lane cecb607559 Make SQL arrays support null elements. This commit fixes the core array 20 years ago
Bruce Momjian 1dc3498251 Standard pgindent run for 8.1. 20 years ago
Tom Lane d78397d301 Change typreceive function API so that receive functions get the same 21 years ago
Bruce Momjian 1bc9235224 Fix NUMERIC modulus to properly truncate division in computation. 21 years ago
Neil Conway be2f825d51 Apply the "nodeAgg" optimization to more of the builtin transition 21 years ago
Neil Conway 51b2f8ba55 This patch changes int2_avg_accum() and int4_avg_accum() use the nodeAgg 21 years ago
Bruce Momjian 2daed8c5b3 Update copyrights that were missed. 21 years ago
Tom Lane 4171bb869f Detect overflow in integer arithmetic operators (integer, smallint, and 22 years ago
Bruce Momjian 15d3f9f6b7 Another pgindent run with lib typedefs added. 22 years ago
Bruce Momjian b6b71b85bc Pgindent run for 8.0. 22 years ago
Bruce Momjian da9a8649d8 Update copyright to 2004. 22 years ago
Neil Conway 132d09054e Minor correction for previous SQLSTATE patch: I changed dsqrt() to emit the 22 years ago
Neil Conway 2871f60f23 Change ln(), log(), power(), and sqrt() to emit the correct SQLSTATE 22 years ago
Neil Conway 0079547bcb Implement the width_bucket() function, per SQL2003. This commit only adds 22 years ago
Tom Lane 0bd61548ab Solve the 'Turkish problem' with undesirable locale behavior for case 22 years ago
Tom Lane 1bc2d544b9 Localize our dependencies on the way to create NAN or INFINITY. 22 years ago
Neil Conway e66fcce672 Use memmove() rather than memcpy() in set_var_from_var(). If this function 22 years ago
Tom Lane 145d9fa46c Code and docs review for numeric-factorial patch. 22 years ago
Bruce Momjian 04a4821ade Attached is a patch implementing factorial(), returning numeric. Points 22 years ago
PostgreSQL Daemon 969685ad44 $Header: -> $PostgreSQL Changes ... 22 years ago
Peter Eisentraut 7438af96fa More message editing, some suggested by Alvaro Herrera 23 years ago
Peter Eisentraut feb4f44d29 Message editing: remove gratuitous variations in message wording, standardize 23 years ago
Bruce Momjian 089003fb46 pgindent run. 23 years ago
Tom Lane 4b1c6695f1 Fix numeric_smaller, numeric_larger, float4smaller, float4larger, 23 years ago
Tom Lane b6a1d25b0a Error message editing in utils/adt. Again thanks to Joe Conway for doing 23 years ago
Tom Lane cdb8a844e6 Fix bug I introduced in recent rewrite of NUMERIC code: numeric to 23 years ago
Tom Lane 30f609484d Add binary I/O routines for a bunch more datatypes. Still a few to go, 23 years ago
Tom Lane 1dc3a62ec7 stddev() and variance() should return NULL when there is just one input 23 years ago
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