aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/float.c
Commit message (Collapse)AuthorAge
* Float-to-int conversion functions should return NULL when given NULLTom Lane2000-03-23
| | | | input, not throw a gratuitous elog().
* Implement column aliases on views "CREATE VIEW name (collist)".Thomas G. Lockhart2000-03-14
| | | | | | | | | | | | | | | | | | Implement TIME WITH TIME ZONE type (timetz internal type). Remap length() for character strings to CHAR_LENGTH() for SQL92 and to remove the ambiguity with geometric length() functions. Keep length() for character strings for backward compatibility. Shrink stored views by removing internal column name list from visible rte. Implement min(), max() for time and timetz data types. Implement conversion of TIME to INTERVAL. Implement abs(), mod(), fac() for the int8 data type. Rename some math functions to generic names: round(), sqrt(), cbrt(), pow(), etc. Rename NUMERIC power() function to pow(). Fix int2 factorial to calculate result in int4. Enhance the Oracle compatibility function translate() to work with string arguments (from Edwin Ramirez). Modify pg_proc system table to remove OID holes.
* Add:Bruce Momjian2000-01-26
| | | | | | * Portions Copyright (c) 1996-2000, PostgreSQL, Inc to all files copyright Regents of Berkeley. Man, that's a lot of files.
* Fixed all elog related warnings, as well as a few others.Peter Eisentraut2000-01-15
|
* Finally found a platform which has finite() but nonetheless sets errnoTom Lane1999-12-20
| | | | | | | rather than returning a NaN for bogus input to pow(). Namely, HPUX 10.20. I think this is sufficient evidence for what I thought all along, which is that the float.c code *must* look at errno whether finite() exists or not.
* Replace float.c's #ifdef finite check with a proper autoconf check, so itTom Lane1999-10-02
| | | | works if finite() is a function. Patch from Christof Petig.
* Modify nodeAgg.c so that no rows are returned for a GROUP BYTom Lane1999-09-26
| | | | | | | | with no input rows, per pghackers discussions around 7/22/99. Clean up a bunch of ugly coding while at it; remove redundant re-lookup of aggregate info at start of each new GROUP. Arrange to pfree intermediate values when they are pass-by-ref types, so that aggregates on pass-by-ref types no longer eat memory. This takes care of a couple of TODO items...
* values.h patch from Alex HowanskyBruce Momjian1999-09-21
|
* Move some system includes into c.h, and remove duplicates.Bruce Momjian1999-07-17
|
* Update #include cleanupsBruce Momjian1999-07-16
|
* Clean up #include in /include directory. Add scripts for checking includes.Bruce Momjian1999-07-15
|
* Cleanup of /include #include's, for 6.6 only.Bruce Momjian1999-07-14
|
* More cpu cleanups, only for 6.6.Bruce Momjian1999-07-13
|
* pgindent run over code.Bruce Momjian1999-05-25
|
* Portability patches for HPUX 11 and Unixware in configureTom Lane1999-04-20
| | | | | | and related files. Also remove float.c's gratuitous redeclaration of isinf() ... looks like there are more decls in there that ought to be in config.h, but I'll leave well enough alone for now ...
* Change my-function-name-- to my_function_name, and optimizer renames.Bruce Momjian1999-02-13
|
* Improper addition of NaN/Infinity recognition to float8in()Tom Lane1999-01-24
| | | | | | | was causing it not to detect out-of-range float values, as evidenced by failure of float8 regression test. I corrected that logic and also modified expected float8 results to account for new error message generated for out-of-range inputs.
* FOR UPDATE is in parser & rules.Vadim B. Mikheev1999-01-21
|
* Fix for missing NAN.Bruce Momjian1999-01-17
|
* Handle "NaN" and "Infinity" for input values.Thomas G. Lockhart1999-01-10
| | | | | | I think NAN is already guaranteed to be there from Jan's work on NUMERIC, but perhaps HUGE_VAL needs some #ifndef's in the same place. Should also include "-Infinity" as -HUGE_VAL sometime; not there yet.
* Change exp() behavior to generate error on underflow ratherTom Lane1998-11-29
| | | | | | than silently returning zero on some machines. Correct float8 regress test to agree. Also fix pow() overflow/underflow check to work correctly on HPUX.
* Add text<->float8 and text<->float4 conversion functions.Thomas G. Lockhart1998-11-17
| | | | | This will fix the problem reported by Jose' Soares when trying to cast a float to text.
* OK, folks, here is the pgindent output.Bruce Momjian1998-09-01
|
* Renaming cleanup, no pgindent yet.Bruce Momjian1998-09-01
|
* From: Ryan Kirkpatrick <rkirkpat@nag.cs.colorado.edu>Marc G. Fournier1998-04-27
| | | | | | | | | | Ok, I have finally gotten all of the defines for Dec/Alpha and Linux/Alpha sorted out as Marc asked. There is no longer any need for '-Dalpha' or '-Dlinuxalpha' in either the Dec/Alpha or the Linux/Alpha template files (./src/template/{alpha,linuxalpha}). I have replaced every instance of 'alpha' or '__alpha__' with '__alpha', as that appears to be the common symbol between C compilers on both operating systems (RH4.2 & DecUnix 4.0b) for alpha.
* More work in the right direction on linux/alphaMarc G. Fournier1998-04-12
| | | | From: Ryan Kirkpatrick <rkirkpat@nag.cs.colorado.edu>
* pgindent run before 6.3 release, with Thomas' requested changes.Bruce Momjian1998-02-26
|
* Move all the isinf() stuff from float.c to isinf.c, and build it according toMarc G. Fournier1998-02-02
| | | | configure vs port specific #ifdef's...
* Various cleanups for the i386_solaris environmentMarc G. Fournier1998-01-13
|
* Change some ABORTS to ERROR. Add line number when COPY Failure.Bruce Momjian1998-01-05
|
* Change elog(WARN) to elog(ERROR) and elog(ABORT).Bruce Momjian1998-01-05
|
* AIX float fix.Bruce Momjian1997-09-26
|
* Remove extra float.h I added.Bruce Momjian1997-09-24
|
* AIX fixes.Bruce Momjian1997-09-23
|
* Fix up error messages to remove extra newline. Use "zero" rather than "0.0".Thomas G. Lockhart1997-09-13
|
* Used modified version of indent that understands over 100 typedefs.Bruce Momjian1997-09-08
|
* Another PGINDENT run that changes variable indenting and case label ↵Bruce Momjian1997-09-08
| | | | indenting. Also static variable indenting.
* Massive commit to run PGINDENT on all *.c and *.h files.Bruce Momjian1997-09-07
|
* Added SCO support, from Daniel Harris.Bruce Momjian1997-07-28
|
* Use finite() macro if available to check returns from pow() and exp().Thomas G. Lockhart1997-06-03
|
* Rename new float and int conversion routines to avoid conflicts withThomas G. Lockhart1997-05-14
| | | | system calls on AIX (and probably other machines too).
* Fix timezone manipulation code to avoid crashes on some machines.Thomas G. Lockhart1997-05-11
| | | | | | | Add type conversion functions for floating point numbers. Check for zero in unary minus floating point code (IEEE allows an explicit negative zero which looks ugly in a query result!). Ensure circle type has non-negative radius.
* From: Dan McGuirk <mcguirk@indirect.com>Marc G. Fournier1997-03-12
| | | | | | | | | | Subject: [HACKERS] linux/alpha patches These patches lay the groundwork for a Linux/Alpha port. The port doesn't actually work unless you tweak the linker to put all the pointers in the first 32 bits of the address space, but it's at least a start. It implements the test-and-set instruction in Alpha assembly, and also fixes a lot of pointer-to-integer conversions, which is probably good anyway.
* Prevent under/over flow of float8 constants in parser. Small regression fix.Bruce Momjian1997-02-19
|
* Remove WIN32 defines. They never worked.Bruce Momjian1997-02-14
|
* Convert NEED_{RINT,CBRT,ISINF} to HAVE_* in prepration for configure...Marc G. Fournier1997-01-24
|
* Add missing #.Bruce Momjian1997-01-18
|
* Minor changes for NeXT compileMarc G. Fournier1997-01-06
| | | | Submitted by: Ovidiu Predescu <ovidiu@bx.logicnet.ro>
* Some compile failure fixes from Keith Parks <emkxp01@mtcc.demon.co.uk>Marc G. Fournier1996-11-06
|
* more removal of PORTNAME_*Marc G. Fournier1996-10-31
|