forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit8b6b043
committed
Re-adjust drop-index-concurrently-1 isolation test
It seems that drop-index-concurrently-1 has started to forget what it wasoriginally meant to be testing.d2d8a22, which added incremental sortschanged the expected plan to be an Index Scan plan instead of a Seq Scanplan. This occurred as the primary key index of the table in questionprovided presorted input and, because that index happened to be thecheapest input path due to enable_seqscan being disabled, the incrementalsort changes just added a Sort on top of that. It seems based on the nameof the PREPAREd statement that the intention here is that the queryproduces a seqscan plan.The reason this test has become broken seems to be due to how the test wasoriginally coded. The test was trying to force a seqscan plan byperforming some casting to make it so the test_dc index couldn't be usedto perform the required filtering. Trying to coax the planner into usinga plan which has costed in a disable_cost seems like it's always going tobe flakey as small changes in costs are drowned out by the largedisable_cost combined with add_path's STD_FUZZ_FACTOR. Here we get rid ofthe casts that we're using to try to trick the planner into a seqscan andinstead toggle enable_seqscan as and when required to get the desiredplan.Additionally, rename a few things in the test and add some additionalwording to the comments to try and make it more clear in the future whatwe expect this test to be doing.Discussion:https://postgr.es/m/CAApHDvrbDhObhLV+=U_K_-t+2Av2av1aL9d+2j_3AO-XndaviA@mail.gmail.comBackpatch-through: 13, whered2d8a22 changed the expected test output1 parentac99802 commit8b6b043
File tree
3 files changed
+44
-40
lines changed- src/test/isolation
- expected
- specs
3 files changed
+44
-40
lines changedLines changed: 16 additions & 15 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 |
| - | |
4 |
| - | |
| 3 | + | |
5 | 4 |
| |
6 | 5 |
| |
7 | 6 |
| |
8 | 7 |
| |
9 | 8 |
| |
10 | 9 |
| |
11 |
| - | |
12 |
| - | |
| 10 | + | |
| 11 | + | |
13 | 12 |
| |
14 |
| - | |
| 13 | + | |
| 14 | + | |
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
| |||
20 | 20 |
| |
21 | 21 |
| |
22 | 22 |
| |
23 |
| - | |
24 |
| - | |
25 |
| - | |
26 |
| - | |
27 |
| - | |
28 |
| - | |
29 |
| - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
30 | 31 |
| |
31 | 32 |
| |
32 |
| - | |
| 33 | + | |
33 | 34 |
| |
34 | 35 |
| |
35 | 36 |
| |
| |||
38 | 39 |
| |
39 | 40 |
| |
40 | 41 |
| |
41 |
| - | |
| 42 | + | |
42 | 43 |
| |
43 | 44 |
| |
44 | 45 |
| |
45 | 46 |
| |
46 | 47 |
| |
47 | 48 |
| |
48 |
| - | |
| 49 | + | |
49 | 50 |
| |
50 | 51 |
| |
51 | 52 |
| |
|
Lines changed: 16 additions & 15 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 |
| - | |
4 |
| - | |
| 3 | + | |
5 | 4 |
| |
6 | 5 |
| |
7 | 6 |
| |
8 | 7 |
| |
9 | 8 |
| |
10 | 9 |
| |
11 |
| - | |
12 |
| - | |
| 10 | + | |
| 11 | + | |
13 | 12 |
| |
14 |
| - | |
| 13 | + | |
| 14 | + | |
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
| |||
20 | 20 |
| |
21 | 21 |
| |
22 | 22 |
| |
23 |
| - | |
24 |
| - | |
25 |
| - | |
26 |
| - | |
27 |
| - | |
28 |
| - | |
29 |
| - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
30 | 31 |
| |
31 | 32 |
| |
32 |
| - | |
| 33 | + | |
33 | 34 |
| |
34 | 35 |
| |
35 | 36 |
| |
| |||
38 | 39 |
| |
39 | 40 |
| |
40 | 41 |
| |
41 |
| - | |
| 42 | + | |
42 | 43 |
| |
43 | 44 |
| |
44 | 45 |
| |
45 | 46 |
| |
46 | 47 |
| |
47 |
| - | |
| 48 | + | |
48 | 49 |
| |
49 | 50 |
| |
50 | 51 |
| |
|
Lines changed: 12 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
6 |
| - | |
| 6 | + | |
| 7 | + | |
7 | 8 |
| |
8 | 9 |
| |
9 | 10 |
| |
| |||
18 | 19 |
| |
19 | 20 |
| |
20 | 21 |
| |
21 |
| - | |
22 | 22 |
| |
23 |
| - | |
24 |
| - | |
| 23 | + | |
| 24 | + | |
25 | 25 |
| |
26 |
| - | |
27 |
| - | |
28 |
| - | |
29 |
| - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
30 | 32 |
| |
31 | 33 |
| |
32 | 34 |
| |
33 | 35 |
| |
34 |
| - | |
| 36 | + | |
35 | 37 |
| |
36 | 38 |
| |
37 | 39 |
| |
38 | 40 |
| |
39 | 41 |
| |
40 | 42 |
| |
41 |
| - | |
| 43 | + |
0 commit comments
Comments
(0)