postgresql/src/include/utils
Bruce Momjian 6cb1f4fe44 The "random" regression test uses a function called oidrand(), which
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
2003-02-13 05:24:04 +00:00
..
acl.h Grant options, and cascading revoke. Grant options are allowed only for 2003-01-23 23:39:07 +00:00
array.h The "Allow easy display of usernames in a group (pg_hba.conf uses groups 2002-11-08 17:27:03 +00:00
ascii.h Remove #ifdef MULTIBYTE per hackers list discussion. 2002-08-29 07:22:30 +00:00
builtins.h The "random" regression test uses a function called oidrand(), which 2003-02-13 05:24:04 +00:00
cash.h Use PostgreSQL's standard declaration for a 32-bit integer to define 2001-11-06 16:27:31 +00:00
catcache.h pgindent run. 2002-09-04 20:31:48 +00:00
date.h Repair array subscript overrun identified by Yichen Xie. Reduce the 2003-01-29 01:08:42 +00:00
datetime.h Repair an embarrassingly large number of alphabetization mistakes in the 2003-01-16 00:26:49 +00:00
datum.h Update copyright to 2002. 2002-06-20 20:29:54 +00:00
dynahash.h Update copyright to 2002. 2002-06-20 20:29:54 +00:00
dynamic_loader.h Update copyright to 2002. 2002-06-20 20:29:54 +00:00
elog.h pgindent run. 2002-09-04 20:31:48 +00:00
fmgrtab.h Update copyright to 2002. 2002-06-20 20:29:54 +00:00
formatting.h Another pgindent run. Fixes enum indenting, and improves #endif 2001-10-28 06:26:15 +00:00
geo_decls.h Update copyright to 2002. 2002-06-20 20:29:54 +00:00
guc.h Rename: 2002-11-15 00:47:22 +00:00
hsearch.h Update copyright to 2002. 2002-06-20 20:29:54 +00:00
inet.h Update copyright to 2002. 2002-06-20 20:29:54 +00:00
int8.h Remove #warning directive, which is nonstandard and isn't really 2002-10-25 22:08:44 +00:00
inval.h pgindent run. 2002-09-04 20:31:48 +00:00
logtape.h Update copyright to 2002. 2002-06-20 20:29:54 +00:00
lsyscache.h Determine the set of constraints applied to a domain at executor 2003-02-03 21:15:45 +00:00
memutils.h Code review for palloc0 patch --- avoid dangerous and unnecessary 2002-12-16 16:22:46 +00:00
nabstime.h Mark the float8 -> int8 cast as implicit. This resolves the problem 2002-09-01 00:58:07 +00:00
numeric.h Alter scale selection for NUMERIC division and transcendental functions 2002-10-02 19:21:26 +00:00
palloc.h Code review for palloc0 patch --- avoid dangerous and unnecessary 2002-12-16 16:22:46 +00:00
pg_crc.h Update copyright to 2002. 2002-06-20 20:29:54 +00:00
pg_locale.h pgindent run. 2002-09-04 20:31:48 +00:00
pg_lzcompress.h This patch implements FOR EACH STATEMENT triggers, per my email to 2002-11-23 03:59:09 +00:00
portal.h Adjust Tcl-related code to compile cleanly with Tcl 8.4 (add const modifiers as 2002-12-30 22:10:54 +00:00
ps_status.h New pgindent run with fixes suggested by Tom. Patch manually reviewed, 2001-11-05 17:46:40 +00:00
rel.h This patch implements FOR EACH STATEMENT triggers, per my email to 2002-11-23 03:59:09 +00:00
relcache.h Restructure local-buffer handling per recent pghackers discussion. 2002-08-06 02:36:35 +00:00
selfuncs.h Extend join-selectivity API (oprjoin interface) so that join type is 2003-01-28 22:13:41 +00:00
sets.h Update copyright to 2002. 2002-06-20 20:29:54 +00:00
syscache.h Fix permissions-checking bugs and namespace-search-path bugs in 2002-11-02 02:33:03 +00:00
timestamp.h pgindent run. 2002-09-04 20:31:48 +00:00
tqual.h pgindent run. 2002-09-04 20:31:48 +00:00
tuplesort.h Update copyright to 2002. 2002-06-20 20:29:54 +00:00
tuplestore.h Update copyright to 2002. 2002-06-20 20:29:54 +00:00
varbit.h Extend pg_cast castimplicit column to a three-way value; this allows us 2002-09-18 21:35:25 +00:00