postgresql/src/backend/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
..
adt The "random" regression test uses a function called oidrand(), which 2003-02-13 05:24:04 +00:00
cache Create a distinction between Lists of integers and Lists of OIDs, to get 2003-02-09 06:56:28 +00:00
error Fix various places where global s/NOTICE/WARNING/ was applied with too 2003-01-07 22:23:17 +00:00
fmgr More cleanup of userid to be AclId rather than Oid. 2002-12-05 04:04:51 +00:00
hash Got tired of explaining why this Assert is not wrong. 2002-10-31 21:59:32 +00:00
init Get rid of last few unadorned 'permission denied' messages. 2003-01-27 00:51:06 +00:00
mb Fix array subscript overruns identified by Yichen Xie. 2003-01-29 01:01:05 +00:00
misc Create a GUC variable REGEX_FLAVOR to control the type of regular 2003-02-06 20:25:33 +00:00
mmgr Adjust Tcl-related code to compile cleanly with Tcl 8.4 (add const modifiers as 2002-12-30 22:10:54 +00:00
sort Add new palloc0 call as merge of palloc and MemSet(0). 2002-11-13 00:39:48 +00:00
time Move responsibility for setting QuerySnapshot for utility statements 2002-10-08 17:17:19 +00:00
.cvsignore Cleanup to ensure good state of derived files in tarballs. 2000-06-09 02:38:36 +00:00
Gen_fmgrtab.sh Remove unused system table columns: 2002-07-24 19:11:14 +00:00
Makefile Remove all traces of multibyte and locale options. Clean up comments 2002-09-03 21:45:44 +00:00