forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit550bc0a
committed
Refactor the TAP test of auto_explain
Previously, the tests were structured so as all the queries whose plansare checked run first, followed by pattern checks using the full set ofserver logs. This can be problematic when extending the tests, as thisincreases query plan overlaps, where two tests finish by having similarplan outputs potentially invalidating the tests wanted.The tests are refactored so as log content matches are checked inisolation of each query run, by grabbing the position of the server logsbefore running each query whose plan is generated in the logs. Thisavoids issues when extending the tests, something that would become alarger problem with a follow-up patch that adds a new GUC inauto_explain to control the size of the each parameter logged.Author: Dagfinn Ilmari MannsåkerDiscussion:https://postgr.es/m/87ee09mohb.fsf@wibble.ilmari.org1 parent258f48f commit550bc0a
1 file changed
+74
-16
lines changedLines changed: 74 additions & 16 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
11 | 47 |
| |
12 | 48 |
| |
13 | 49 |
| |
| |||
16 | 52 |
| |
17 | 53 |
| |
18 | 54 |
| |
19 |
| - | |
20 |
| - | |
21 |
| - | |
22 |
| - | |
23 |
| - | |
24 |
| - | |
25 |
| - | |
26 |
| - | |
27 |
| - | |
28 |
| - | |
29 |
| - | |
30 |
| - | |
31 |
| - | |
| 55 | + | |
| 56 | + | |
32 | 57 |
| |
33 |
| - | |
34 |
| - | |
35 |
| - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
36 | 62 |
| |
37 | 63 |
| |
38 | 64 |
| |
39 | 65 |
| |
40 | 66 |
| |
41 | 67 |
| |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
42 | 78 |
| |
43 | 79 |
| |
44 | 80 |
| |
45 | 81 |
| |
46 | 82 |
| |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
47 | 94 |
| |
48 | 95 |
| |
49 | 96 |
| |
50 | 97 |
| |
51 | 98 |
| |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
52 | 110 |
| |
53 | 111 |
| |
54 | 112 |
| |
|
0 commit comments
Comments
(0)