forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit5bfe6a3
committed
Fix timestamp range handling in regression tests of modules/commit_ts/
Switching the regression tests to use tstzrange() has proved to not be agood idea for environments where the timestamp precision is low, asinternal range checks exclude the upper bound. So, if the committimestamp of a transaction matched with now() from the next query,the test would fail. This changes to use two bound checks instead ofthe range function, where the upper bound is inclusive.Per buildfarm member jacana.Discussion:https://postgr.es/m/20200712122507.GD21680@paquier.xyz1 parentea3e15d commit5bfe6a3
File tree
3 files changed
+54
-33
lines changed- src/test/modules/commit_ts
- expected
- sql
3 files changed
+54
-33
lines changedLines changed: 28 additions & 21 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
40 | 40 |
| |
41 | 41 |
| |
42 | 42 |
| |
43 |
| - | |
44 |
| - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
45 | 46 |
| |
46 |
| - | |
47 |
| - | |
48 |
| - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
49 | 50 |
| |
50 | 51 |
| |
51 | 52 |
| |
| |||
71 | 72 |
| |
72 | 73 |
| |
73 | 74 |
| |
74 |
| - | |
| 75 | + | |
| 76 | + | |
75 | 77 |
| |
76 | 78 |
| |
77 |
| - | |
78 |
| - | |
79 |
| - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
80 | 82 |
| |
81 | 83 |
| |
82 |
| - | |
| 84 | + | |
| 85 | + | |
83 | 86 |
| |
84 | 87 |
| |
85 |
| - | |
86 |
| - | |
87 |
| - | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
88 | 91 |
| |
89 | 92 |
| |
90 | 93 |
| |
| |||
102 | 105 |
| |
103 | 106 |
| |
104 | 107 |
| |
105 |
| - | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
106 | 111 |
| |
107 | 112 |
| |
108 |
| - | |
109 |
| - | |
110 |
| - | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
111 | 116 |
| |
112 | 117 |
| |
113 |
| - | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
114 | 121 |
| |
115 | 122 |
| |
116 |
| - | |
117 |
| - | |
118 |
| - | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
119 | 126 |
| |
120 | 127 |
| |
121 | 128 |
| |
|
Lines changed: 13 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
35 | 35 |
| |
36 | 36 |
| |
37 | 37 |
| |
38 |
| - | |
39 |
| - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
40 | 41 |
| |
41 | 42 |
| |
42 | 43 |
| |
| |||
63 | 64 |
| |
64 | 65 |
| |
65 | 66 |
| |
66 |
| - | |
| 67 | + | |
| 68 | + | |
67 | 69 |
| |
68 | 70 |
| |
69 | 71 |
| |
70 | 72 |
| |
71 |
| - | |
| 73 | + | |
| 74 | + | |
72 | 75 |
| |
73 | 76 |
| |
74 | 77 |
| |
| |||
88 | 91 |
| |
89 | 92 |
| |
90 | 93 |
| |
91 |
| - | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
92 | 97 |
| |
93 | 98 |
| |
94 | 99 |
| |
95 | 100 |
| |
96 |
| - | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
97 | 104 |
| |
98 | 105 |
| |
99 | 106 |
| |
|
Lines changed: 13 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
22 | 22 |
| |
23 | 23 |
| |
24 | 24 |
| |
25 |
| - | |
26 |
| - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
27 | 28 |
| |
28 | 29 |
| |
29 | 30 |
| |
| |||
34 | 35 |
| |
35 | 36 |
| |
36 | 37 |
| |
37 |
| - | |
| 38 | + | |
| 39 | + | |
38 | 40 |
| |
39 | 41 |
| |
40 |
| - | |
| 42 | + | |
| 43 | + | |
41 | 44 |
| |
42 | 45 |
| |
43 | 46 |
| |
| |||
46 | 49 |
| |
47 | 50 |
| |
48 | 51 |
| |
49 |
| - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
50 | 55 |
| |
51 | 56 |
| |
52 |
| - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
53 | 60 |
| |
54 | 61 |
| |
55 | 62 |
| |
|
0 commit comments
Comments
(0)