summaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/misc.c
Commit message (Collapse)AuthorAgeFilesLines
* Update copyrights to 2003.Bruce Momjian2003-08-041-2/+2
|
* Fix compile warnings.Tom Lane2003-06-271-1/+2
|
* First batch of object rename commands.Peter Eisentraut2003-06-271-3/+2
|
* The "random" regression test uses a function called oidrand(), whichBruce Momjian2003-02-131-70/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | takes two parameters, an OID x and an integer y, and returns "true" with probability 1/y (the OID argument is ignored). This can be useful -- for example, it can be used to select a random sampling of the rows in a table (which is what the "random" regression test uses it for). This patch removes that function, because it was old and messy. The old function had the following problems: - it was undocumented - it was poorly named - it was designed to workaround an optimizer bug that no longer exists (the OID argument is to ensure that the optimizer won't optimize away calls to the function; AFAIK marking the function as 'volatile' suffices nowadays) - it used a different random-number generation technique than the other PSRNG-related functions in the backend do (it called random() like they do, but it had its own logic for setting a set and deciding when to reseed the RNG). Ok, this patch removes oidrand(), oidsrand(), and userfntest(), and improves the SGML docs a little bit (un-commenting the setseed() documentation). Neil Conway
* pgindent run.Bruce Momjian2002-09-041-2/+2
|
* Remove sys/types.h in files that include postgres.h, and hence c.h,Bruce Momjian2002-09-021-4/+3
| | | | because c.h has sys/types.h.
* Add current_database().Bruce Momjian2002-08-201-1/+18
| | | | | | | | | | | | | | | > Quick system function to pull out the current database. > > I've used this a number of times to allow stored procedures to find out > where they are. Especially useful for those that do logging or hit a > remote server. > > It's called current_database() to match with current_user(). It's also a necessity for an informational schema. The catalog (database) name is required in a number of places. Rod Taylor
* Update copyright to 2002.Bruce Momjian2002-06-201-2/+2
|
* pgindent run on all C files. Java run to follow. initdb/regressionBruce Momjian2001-10-251-2/+1
| | | | tests pass.
* pgindent run. Make it all clean.Bruce Momjian2001-03-221-2/+3
|
* Change Copyright from PostgreSQL, Inc to PostgreSQL Global Development Group.Bruce Momjian2001-01-241-2/+2
|
* Clean up bogosities in use of random(3) and srandom(3) --- do not assumeTom Lane2000-08-071-6/+8
| | | | | | | that RAND_MAX applies to them, since it doesn't. Instead add a config.h parameter MAX_RANDOM_VALUE. This is currently set at 2^31-1 but could be auto-configured if that ever proves necessary. Also fix some outright bugs like calling srand() where srandom() is appropriate.
* Latest round of fmgr updates. All functions with bool,char, or int2Tom Lane2000-06-051-35/+38
| | | | | | | 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.
* 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.
* Remove unused #includes in *.c files.Bruce Momjian1999-07-151-3/+1
|
* Change my-function-name-- to my_function_name, and optimizer renames.Bruce Momjian1999-02-131-2/+2
|
* OK, folks, here is the pgindent output.Bruce Momjian1998-09-011-5/+5
|
* Renaming cleanup, no pgindent yet.Bruce Momjian1998-09-011-6/+6
|
* Auto-seed random so user's can't request random values based onBruce Momjian1998-06-091-1/+17
| | | | our postmaster random seed used from cancel.
* Remove #include "port-protos.h", since we no longer use itMarc G. Fournier1998-02-241-6/+1
| | | | From: Frank Ridderbusch <ridderbusch.pad@sni.de>
* More cleanups. I can now compile without PORTNAME being defined nMarc G. Fournier1997-12-191-2/+4
| | | | | | | | | Makefile.global. End result, if all goes well, should allow for much easier porting, since there will no longer be a concept of a "port". Most, if not everything, *should* be determined by configure, or by the compiler itself. Still work to be done though :)
* Used modified version of indent that understands over 100 typedefs.Bruce Momjian1997-09-081-3/+3
|
* Another PGINDENT run that changes variable indenting and case label ↵Bruce Momjian1997-09-081-2/+2
| | | | indenting. Also static variable indenting.
* Massive commit to run PGINDENT on all *.c and *.h files.Bruce Momjian1997-09-071-35/+38
|
* Added SCO support, from Daniel Harris.Bruce Momjian1997-07-281-1/+2
|
* Change mixed-case routines to lower-case if referenced in pg_proc.hThomas G. Lockhart1997-04-271-3/+3
| | | | | Add comparison operators to boolean and smaller/larger operators to datetime and timespan. Fix int4 overflow math problem in timespan comparison operators.
* Use port-protos.h instead of trying to declare random() and srandom()Bryan Henderson1996-11-141-10/+2
| | | | explicitly.
* more removal of PORTNAME_*Marc G. Fournier1996-10-311-7/+7
|
* - merging in Dr. George's tree with oursMarc G. Fournier1996-07-221-3/+7
| | | | | | | | | - src/backend/access - no changes - src/backend/utils - mostly cosmetic changes - ESCAPE_PATCH Added - src/Makefile.global changes merged
* fix: BSDi 2.1 requires a port seperate from BSDi 2.0{.1}Marc G. Fournier1996-07-161-2/+2
| | | | submitted by: Bruce Momjian (root@candle.pha.pa.us)
* Postgres95 1.01 Distribution - Virgin SourcesPG95-1_01Marc G. Fournier1996-07-091-0/+96