- Notifications
You must be signed in to change notification settings - Fork5
Commit6cb1f4f
committed
The "random" regression test uses a function called oidrand(), which
takes two parameters, an OID x and an integer y, and returns "true" withprobability 1/y (the OID argument is ignored). This can be useful -- forexample, it can be used to select a random sampling of the rows in atable (which is what the "random" regression test uses it for).This patch removes that function, because it was old and messy. The oldfunction 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 awaycalls to the function; AFAIK marking the function as 'volatile' sufficesnowadays)- it used a different random-number generation technique than the otherPSRNG-related functions in the backend do (it called random() like theydo, but it had its own logic for setting a set and deciding when toreseed the RNG).Ok, this patch removes oidrand(), oidsrand(), and userfntest(), andimproves the SGML docs a little bit (un-commenting the setseed()documentation).Neil Conway1 parent8195f8f commit6cb1f4f
File tree
7 files changed
+41
-115
lines changed- doc/src/sgml
- src
- backend/utils/adt
- include
- catalog
- utils
- test/regress
- expected
- sql
7 files changed
+41
-115
lines changedLines changed: 32 additions & 28 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 |
| - | |
| 2 | + | |
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
| |||
682 | 682 |
| |
683 | 683 |
| |
684 | 684 |
| |
685 |
| - | |
686 |
| - | |
687 |
| - | |
688 |
| - | |
689 |
| - | |
690 |
| - | |
691 |
| - | |
692 |
| - | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
693 | 694 |
| |
694 | 695 |
| |
695 | 696 |
| |
| |||
955 | 956 |
| |
956 | 957 |
| |
957 | 958 |
| |
958 |
| - | |
| 959 | + | |
| 960 | + | |
959 | 961 |
| |
960 | 962 |
| |
961 | 963 |
| |
| |||
1168 | 1170 |
| |
1169 | 1171 |
| |
1170 | 1172 |
| |
1171 |
| - | |
| 1173 | + | |
1172 | 1174 |
| |
1173 | 1175 |
| |
1174 | 1176 |
| |
| |||
1182 | 1184 |
| |
1183 | 1185 |
| |
1184 | 1186 |
| |
1185 |
| - | |
| 1187 | + | |
1186 | 1188 |
| |
1187 | 1189 |
| |
1188 | 1190 |
| |
| |||
2511 | 2513 |
| |
2512 | 2514 |
| |
2513 | 2515 |
| |
2514 |
| - | |
2515 |
| - | |
2516 |
| - | |
2517 |
| - | |
2518 |
| - | |
2519 |
| - | |
2520 |
| - | |
2521 |
| - | |
| 2516 | + | |
| 2517 | + | |
| 2518 | + | |
| 2519 | + | |
| 2520 | + | |
| 2521 | + | |
| 2522 | + | |
| 2523 | + | |
| 2524 | + | |
2522 | 2525 |
| |
2523 | 2526 |
| |
2524 | 2527 |
| |
| |||
6025 | 6028 |
| |
6026 | 6029 |
| |
6027 | 6030 |
| |
6028 |
| - | |
6029 |
| - | |
6030 |
| - | |
6031 |
| - | |
6032 |
| - | |
| 6031 | + | |
| 6032 | + | |
| 6033 | + | |
| 6034 | + | |
| 6035 | + | |
6033 | 6036 |
| |
6034 | 6037 |
| |
6035 | 6038 |
| |
| |||
6480 | 6483 |
| |
6481 | 6484 |
| |
6482 | 6485 |
| |
6483 |
| - | |
| 6486 | + | |
| 6487 | + | |
6484 | 6488 |
| |
6485 | 6489 |
| |
6486 | 6490 |
| |
| |||
6497 | 6501 |
| |
6498 | 6502 |
| |
6499 | 6503 |
| |
6500 |
| - | |
6501 |
| - | |
| 6504 | + | |
| 6505 | + | |
6502 | 6506 |
| |
6503 | 6507 |
| |
6504 | 6508 |
| |
|
Lines changed: 1 addition & 70 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
43 | 43 |
| |
44 | 44 |
| |
45 | 45 |
| |
46 |
| - | |
47 |
| - | |
48 |
| - | |
49 |
| - | |
50 |
| - | |
51 |
| - | |
52 |
| - | |
53 |
| - | |
54 |
| - | |
55 |
| - | |
56 |
| - | |
57 |
| - | |
58 |
| - | |
59 |
| - | |
60 |
| - | |
61 |
| - | |
62 |
| - | |
63 |
| - | |
64 |
| - | |
65 |
| - | |
66 |
| - | |
67 |
| - | |
68 |
| - | |
69 |
| - | |
70 |
| - | |
71 |
| - | |
72 |
| - | |
73 |
| - | |
74 |
| - | |
75 |
| - | |
76 |
| - | |
77 |
| - | |
78 |
| - | |
79 |
| - | |
80 |
| - | |
81 |
| - | |
82 |
| - | |
83 |
| - | |
84 |
| - | |
85 |
| - | |
86 |
| - | |
87 |
| - | |
88 |
| - | |
89 |
| - | |
90 |
| - | |
91 |
| - | |
92 |
| - | |
93 |
| - | |
94 |
| - | |
95 |
| - | |
96 |
| - | |
97 |
| - | |
98 |
| - | |
99 |
| - | |
100 |
| - | |
101 |
| - | |
102 |
| - | |
103 |
| - | |
104 |
| - | |
105 |
| - | |
106 |
| - | |
107 |
| - | |
108 |
| - | |
109 |
| - | |
110 |
| - | |
111 |
| - | |
112 |
| - | |
113 |
| - | |
114 |
| - | |
115 | 46 |
| |
116 | 47 |
| |
117 | 48 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
37 | 37 |
| |
38 | 38 |
| |
39 | 39 |
| |
40 |
| - | |
| 40 | + | |
41 | 41 |
| |
42 | 42 |
| |
43 | 43 |
| |
| |||
53 | 53 |
| |
54 | 54 |
| |
55 | 55 |
| |
56 |
| - | |
| 56 | + | |
57 | 57 |
| |
58 | 58 |
|
Lines changed: 1 addition & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
| 10 | + | |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| |||
944 | 944 |
| |
945 | 945 |
| |
946 | 946 |
| |
947 |
| - | |
948 |
| - | |
949 |
| - | |
950 |
| - | |
951 |
| - | |
952 |
| - | |
953 | 947 |
| |
954 | 948 |
| |
955 | 949 |
| |
|
Lines changed: 1 addition & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
| 10 | + | |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| |||
315 | 315 |
| |
316 | 316 |
| |
317 | 317 |
| |
318 |
| - | |
319 |
| - | |
320 |
| - | |
321 | 318 |
| |
322 | 319 |
| |
323 | 320 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
18 |
| - | |
| 18 | + | |
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
22 |
| - | |
| 22 | + | |
23 | 23 |
| |
24 | 24 |
| |
25 | 25 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
15 |
| - | |
| 15 | + | |
16 | 16 |
| |
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
20 |
| - | |
| 20 | + | |
21 | 21 |
| |
22 | 22 |
| |
23 | 23 |
| |
|
0 commit comments
Comments
(0)