summaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/oid.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Emit a warning when an empty string is input to the oid, float4, andNeil Conway2004-03-041-4/+16
| | | | | | | | float8 types. This begins the deprecation of this feature: in 7.6, this input will be rejected. Also added a new error code for warnings about deprecated features, and updated the regression tests.
* Improve the consistency of the error message emitted when rejectingNeil Conway2004-02-181-6/+6
| | | | | invalid input to the oid type. Also, remove some long-unused code from adt/numutils.c
* $Header: -> $PostgreSQL Changes ...PostgreSQL Daemon2003-11-291-1/+1
|
* Message editing: remove gratuitous variations in message wording, standardizePeter Eisentraut2003-09-251-6/+6
| | | | | terms, add some clarifications, fix some untranslatable attempts at dynamic message building.
* Update copyrights to 2003.Bruce Momjian2003-08-041-2/+2
|
* pgindent run.Bruce Momjian2003-08-041-5/+1
|
* Error message editing in utils/adt. Again thanks to Joe Conway for doingTom Lane2003-07-271-12/+25
| | | | the bulk of the heavy lifting ...
* Binary send/receive routines for a few basic datatypes --- enough forTom Lane2003-05-091-4/+65
| | | | testing purposes.
* Update copyright to 2002.Bruce Momjian2002-06-201-2/+2
|
* sum() on int2 and int4 columns now uses an int8, not numeric, accumulatorTom Lane2001-08-141-1/+19
| | | | | | | | | | | | | | | | | | | | for speed reasons; its result type also changes to int8. avg() on these datatypes now accumulates the running sum in int8 for speed; but we still deliver the final result as numeric, so that fractional accuracy is preserved. count() now counts and returns in int8, not int4. I am a little nervous about this possibly breaking users' code, but there didn't seem to be a strong sentiment for avoiding the problem. If we get complaints during beta, we can change count back to int4 and add a "count8" aggregate. For that matter, users can do it for themselves with a simple CREATE AGGREGATE command; the int4inc function is still present, so no C hacking is needed. Also added max() and min() aggregates for OID that do proper unsigned comparison, instead of piggybacking on int4 aggregates. initdb forced.
* pgindent run. Make it all clean.Bruce Momjian2001-03-221-28/+27
|
* Change Copyright from PostgreSQL, Inc to PostgreSQL Global Development Group.Bruce Momjian2001-01-241-2/+2
|
* Let's try this again on accepting the correct range of Oid input valuesTom Lane2000-12-281-4/+11
| | | | for 64-bit platforms ...
* Repair not-too-well-thought-out code to do rangechecking of OIDs onTom Lane2000-12-221-52/+88
| | | | 64-bit machines. Also, make oidvectorin use the same code as oidin.
* Ensure that all uses of <ctype.h> functions are applied to unsigned-charTom Lane2000-12-031-4/+4
| | | | | values, whether the local char type is signed or not. This is necessary for portability. Per discussion on pghackers around 9/16/00.
* Add missing #include <errno.h>.Tom Lane2000-11-211-3/+4
|
* Make oidin/oidout produce and consume unsigned representation of Oid,Tom Lane2000-11-211-27/+68
| | | | | | | | | | | | rather than just being aliases for int4in/int4out. Give type Oid a full set of comparison operators that do proper unsigned comparison, instead of reusing the int4 comparators. Since pg_dump is now doing unsigned comparisons of OIDs, it is now *necessary* that we play by the rules here. In fact, given that btoidcmp() has been doing unsigned comparison for quite some time, it seems likely that we have index- corruption problems in 7.0 and before once the Oid counter goes past 2G. Fixing these operators is a necessary step before we can think about 8-byte Oid, too.
* Convert all remaining float4 and float8 functions to new fmgr style.Tom Lane2000-08-011-2/+2
| | | | | | At this point I think it'd be possible to make float4 be pass-by-value without too much work --- and float8 too on machines where Datum is 8 bytes. Something to try when the mood strikes, anyway.
* TOASTJan Wieck2000-07-031-2/+2
| | | | | | | | WARNING: This is actually broken - we have self-deadlocks due to concurrent changes in buffer management. Vadim and me are working on it. Jan
* Big warnings cleanup for Solaris/GCC. Down to about 40 now, butPeter Eisentraut2000-06-141-4/+4
| | | | | | | | | | | we'll get there one day. Use `cat' to create aclocal.m4, not `aclocal'. Some people don't have automake installed. Only run the autoconf rule in the top-level GNUmakefile if the invoker specified `make configure', don't run it automatically because of CVS timestamp skew.
* Latest round of fmgr updates. All functions with bool,char, or int2Tom Lane2000-06-051-86/+107
| | | | | | | inputs have been converted to newstyle. This should go a long way towards fixing our portability problems with platforms where char and short parameters are passed differently from int-width parameters. Still more to do for the Alpha port however.
* Ye-old pgindent run. Same 4-space tabs.Bruce Momjian2000-04-121-6/+7
|
* Add:Bruce Momjian2000-01-261-2/+3
| | | | | | * Portions Copyright (c) 1996-2000, PostgreSQL, Inc to all files copyright Regents of Berkeley. Man, that's a lot of files.
* Rename oid8 -> oidvector and int28 -> int2vector. Cleanup of *out functions.Bruce Momjian2000-01-101-13/+13
|
* Update int28out and out8out and _in_ functions to handle trailing zerosBruce Momjian2000-01-101-11/+21
| | | | properly.
* Fix oid8in and int28in for spacesBruce Momjian2000-01-101-2/+3
|
* Move INDEX_MAX_KEYS to postgres.h, and make it configurable for users.Bruce Momjian2000-01-101-23/+20
|
* Move some system includes into c.h, and remove duplicates.Bruce Momjian1999-07-171-3/+1
|
* Final cleanup.Bruce Momjian1999-07-161-1/+1
|
* Update #include cleanupsBruce Momjian1999-07-161-2/+2
|
* Clean up #include in /include directory. Add scripts for checking includes.Bruce Momjian1999-07-151-2/+1
|
* Cleanup of /include #include's, for 6.6 only.Bruce Momjian1999-07-141-1/+2
|
* Change error messages to oids come out as %u and not %d. Change has noBruce Momjian1999-05-101-2/+2
| | | | real affect now.
* Change my-function-name-- to my_function_name, and optimizer renames.Bruce Momjian1999-02-131-2/+2
|
* Add oid8neq.Bruce Momjian1998-10-291-1/+7
|
* Cleanup for oid8[] from Tatsuo Ishii.Bruce Momjian1998-09-221-15/+16
|
* cleanupBruce Momjian1998-09-011-4/+4
|
* OK, folks, here is the pgindent output.Bruce Momjian1998-09-011-10/+14
|
* Renaming cleanup, no pgindent yet.Bruce Momjian1998-09-011-21/+21
|
* heap_fetch requires buffer pointer, must be released; heap_getnextBruce Momjian1998-08-191-1/+41
| | | | | | | | | | | | | no longer returns buffer pointer, can be gotten from scan; descriptor; bootstrap can create multi-key indexes; pg_procname index now is multi-key index; oidint2, oidint4, oidname are gone (must be removed from regression tests); use System Cache rather than sequential scan in many places; heap_modifytuple no longer takes buffer parameter; remove unused buffer parameter in a few other functions; oid8 is not index-able; remove some use of single-character variable names; cleanup Buffer variables usage and scan descriptor looping; cleaned up allocation and freeing of tuples; 18k lines of diff;
* pgindent run before 6.3 release, with Thomas' requested changes.Bruce Momjian1998-02-261-20/+20
|
* Goodbye register keyword. Compiler knows better.Bruce Momjian1998-02-111-5/+5
|
* Allow varchar() to only store needed bytes. Remove PALLOC,PALLOCTYPE,PFREE. ↵Bruce Momjian1998-01-071-5/+5
| | | | Clean up use of VARDATA.
* Add conversion routines for oid to and from text.Thomas G. Lockhart1997-10-251-4/+44
|
* Used modified version of indent that understands over 100 typedefs.Bruce Momjian1997-09-081-4/+4
|
* Another PGINDENT run that changes variable indenting and case label ↵Bruce Momjian1997-09-081-10/+10
| | | | indenting. Also static variable indenting.
* Massive commit to run PGINDENT on all *.c and *.h files.Bruce Momjian1997-09-071-71/+82
|
* Major patch to speed up backend startup after profiling analysis.Bruce Momjian1997-08-241-1/+5
|
* Various compile errors concerning overflow due to shifts, unsigned, and bad ↵Bruce Momjian1997-07-241-5/+1
| | | | prototypes, from Solaris, from Diab Jerius
* Date/Time updates from Thomas...Marc G. Fournier1997-03-141-5/+5
|