- Notifications
You must be signed in to change notification settings - Fork4.9k
Commitb265aa1
committed
Avoid low-probability regression test failures in timestamp[tz] tests.
If the first transaction block in these tests were entered exactlyat midnight (California time), they'd report a bogus failure dueto 'now' and 'midnight' having the same values. Commit8c2ac75had dismissed this as being of negligible probability, but we'venow seen it happen in the buildfarm, so let's prevent it. We canget pretty much the same test coverage without an it's-not-midnightassumption by moving the does-'now'-work cases into their own test step.While here, apply commit47169c2's s/DELETE/TRUNCATE/ change totimestamptz as well as timestamp (not sure why that didn'toccur to me at the time; the risk of failure is the same).Back-patch to all supported branches, since the main point isto get rid of potential buildfarm failures.Discussion:https://postgr.es/m/14821.1577031117@sss.pgh.pa.us1 parent127ccb3 commitb265aa1
File tree
4 files changed
+63
-59
lines changed- src/test/regress
- expected
- sql
4 files changed
+63
-59
lines changedLines changed: 17 additions & 20 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
8 |
| - | |
9 |
| - | |
10 |
| - | |
11 |
| - | |
12 |
| - | |
13 |
| - | |
14 |
| - | |
15 |
| - | |
16 |
| - | |
17 |
| - | |
18 |
| - | |
19 |
| - | |
| 8 | + | |
| 9 | + | |
20 | 10 |
| |
21 |
| - | |
22 | 11 |
| |
23 | 12 |
| |
24 | 13 |
| |
| |||
43 | 32 |
| |
44 | 33 |
| |
45 | 34 |
| |
46 |
| - | |
47 |
| - | |
48 |
| - | |
49 |
| - | |
50 |
| - | |
51 |
| - | |
52 | 35 |
| |
53 | 36 |
| |
54 |
| - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
55 | 46 |
| |
56 | 47 |
| |
57 | 48 |
| |
| |||
73 | 64 |
| |
74 | 65 |
| |
75 | 66 |
| |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
76 | 73 |
| |
77 | 74 |
| |
78 | 75 |
| |
|
Lines changed: 25 additions & 16 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
8 |
| - | |
9 |
| - | |
10 |
| - | |
11 |
| - | |
12 |
| - | |
13 |
| - | |
14 |
| - | |
15 |
| - | |
16 |
| - | |
17 |
| - | |
18 |
| - | |
19 |
| - | |
| 8 | + | |
| 9 | + | |
20 | 10 |
| |
21 |
| - | |
22 | 11 |
| |
23 | 12 |
| |
24 | 13 |
| |
| |||
42 | 31 |
| |
43 | 32 |
| |
44 | 33 |
| |
45 |
| - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
46 | 41 |
| |
47 | 42 |
| |
48 | 43 |
| |
49 | 44 |
| |
50 | 45 |
| |
51 | 46 |
| |
52 | 47 |
| |
53 |
| - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
54 | 57 |
| |
55 | 58 |
| |
56 | 59 |
| |
| |||
72 | 75 |
| |
73 | 76 |
| |
74 | 77 |
| |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
75 | 84 |
| |
76 |
| - | |
| 85 | + | |
77 | 86 |
| |
78 | 87 |
| |
79 | 88 |
| |
|
Lines changed: 9 additions & 11 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
11 |
| - | |
12 |
| - | |
13 |
| - | |
14 |
| - | |
15 |
| - | |
16 |
| - | |
17 |
| - | |
| 10 | + | |
| 11 | + | |
18 | 12 |
| |
19 | 13 |
| |
20 | 14 |
| |
21 |
| - | |
22 | 15 |
| |
23 | 16 |
| |
24 | 17 |
| |
| |||
29 | 22 |
| |
30 | 23 |
| |
31 | 24 |
| |
32 |
| - | |
33 | 25 |
| |
34 | 26 |
| |
35 | 27 |
| |
36 | 28 |
| |
37 | 29 |
| |
38 |
| - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
39 | 36 |
| |
40 | 37 |
| |
41 | 38 |
| |
42 | 39 |
| |
43 | 40 |
| |
44 | 41 |
| |
| 42 | + | |
45 | 43 |
| |
46 | 44 |
| |
47 | 45 |
| |
|
Lines changed: 12 additions & 12 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
11 |
| - | |
12 |
| - | |
13 |
| - | |
14 |
| - | |
15 |
| - | |
16 |
| - | |
17 |
| - | |
| 10 | + | |
| 11 | + | |
18 | 12 |
| |
19 | 13 |
| |
20 | 14 |
| |
21 |
| - | |
22 | 15 |
| |
23 | 16 |
| |
24 | 17 |
| |
| |||
28 | 21 |
| |
29 | 22 |
| |
30 | 23 |
| |
31 |
| - | |
| 24 | + | |
| 25 | + | |
32 | 26 |
| |
33 | 27 |
| |
34 | 28 |
| |
35 | 29 |
| |
36 | 30 |
| |
37 |
| - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
38 | 37 |
| |
39 | 38 |
| |
40 | 39 |
| |
41 | 40 |
| |
42 | 41 |
| |
43 | 42 |
| |
| 43 | + | |
44 | 44 |
| |
45 | 45 |
| |
46 |
| - | |
| 46 | + | |
47 | 47 |
| |
48 | 48 |
| |
49 | 49 |
| |
|
0 commit comments
Comments
(0)