forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commite135743
committed
Reduce runtime of privileges.sql test under CLOBBER_CACHE_ALWAYS.
Several queries in the privileges regression test cause the plannerto apply the plpgsql function "leak()" to every element of thehistogram for atest12.b. Since commit0c882e5 increased the sizeof that histogram to 10000 entries, the test invokes that functionover 100000 times, which takes an absolutely unreasonable amount oftime in clobber-cache-always mode.However, there's no real reason why that has to be a plpgsqlfunction: for the purposes of this test, all that matters is thatit not be marked leakproof. So we can replace the plpgsqlimplementation with a direct call of int4lt, which has the samebehavior and is orders of magnitude faster. This is expected tocut several hours off the buildfarm cycle time for CCA animals.It has some positive impact in normal builds too, though that'sprobably lost in the noise.Back-patch to v13 where0c882e5 came in.Discussion:https://postgr.es/m/575884.1620626638@sss.pgh.pa.us1 parentd780d7c commite135743
2 files changed
+11
-6
lines changedLines changed: 5 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
38 | 38 |
| |
39 | 39 |
| |
40 | 40 |
| |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
41 | 46 |
| |
42 | 47 |
| |
43 | 48 |
| |
| |||
233 | 238 |
| |
234 | 239 |
| |
235 | 240 |
| |
236 |
| - | |
237 |
| - | |
238 |
| - | |
239 | 241 |
| |
240 | 242 |
| |
241 | 243 |
| |
|
Lines changed: 6 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
45 | 45 |
| |
46 | 46 |
| |
47 | 47 |
| |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
48 | 54 |
| |
49 | 55 |
| |
50 | 56 |
| |
| |||
166 | 172 |
| |
167 | 173 |
| |
168 | 174 |
| |
169 |
| - | |
170 |
| - | |
171 |
| - | |
172 | 175 |
| |
173 | 176 |
| |
174 | 177 |
| |
|
0 commit comments
Comments
(0)