forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitebd4992
committed
Don't drop NOTICE messages in isolation tests.
For its entire existence, isolationtester.c has forced client_min_messagesto WARNING, but that seems like a very poor choice of test design. Itshould be up to individual test scripts to manage whether they emit noticesand to ensure that the results are stable. (There were no NOTICE messagesin the original set of isolation tests, so this was certainly dead codewhen committed, but perhaps it was needed at some earlier point.)It's possible that the original motivation was due to platform-dependentvariations in the timing of stdout vs. stderr output. That should bemoot since commits73bcb76/6eda3e9c2, but just in case, adjustisotesterNoticeProcessor to print to stdout not stderr. (stderr seemslike the wrong thing anyway: it should be for error printouts not expectedtest output.)Testing shows that the notices in insert-conflict-specconflict are indeeda bit timing-unstable on very slow machines, so hide them; maybe we canimprove that later. Also, make the notices in plpgsql-toast a bit lessverbose than the original code would've had them.Discussion:https://postgr.es/m/14616.1564251339@sss.pgh.pa.us1 parent5ab892c commitebd4992
File tree
4 files changed
+22
-23
lines changed- src/test/isolation
- expected
- specs
4 files changed
+22
-23
lines changedLines changed: 10 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
22 | 22 |
| |
23 | 23 |
| |
24 | 24 |
| |
25 |
| - | |
| 25 | + | |
26 | 26 |
| |
27 | 27 |
| |
28 | 28 |
| |
| |||
35 | 35 |
| |
36 | 36 |
| |
37 | 37 |
| |
| 38 | + | |
38 | 39 |
| |
39 | 40 |
| |
40 | 41 |
| |
| |||
59 | 60 |
| |
60 | 61 |
| |
61 | 62 |
| |
62 |
| - | |
| 63 | + | |
63 | 64 |
| |
64 | 65 |
| |
65 | 66 |
| |
| |||
72 | 73 |
| |
73 | 74 |
| |
74 | 75 |
| |
| 76 | + | |
75 | 77 |
| |
76 | 78 |
| |
77 | 79 |
| |
| |||
97 | 99 |
| |
98 | 100 |
| |
99 | 101 |
| |
100 |
| - | |
| 102 | + | |
101 | 103 |
| |
102 | 104 |
| |
103 | 105 |
| |
| |||
110 | 112 |
| |
111 | 113 |
| |
112 | 114 |
| |
| 115 | + | |
113 | 116 |
| |
114 | 117 |
| |
115 | 118 |
| |
| |||
134 | 137 |
| |
135 | 138 |
| |
136 | 139 |
| |
137 |
| - | |
| 140 | + | |
138 | 141 |
| |
139 | 142 |
| |
140 | 143 |
| |
| |||
147 | 150 |
| |
148 | 151 |
| |
149 | 152 |
| |
| 153 | + | |
150 | 154 |
| |
151 | 155 |
| |
152 | 156 |
| |
| |||
173 | 177 |
| |
174 | 178 |
| |
175 | 179 |
| |
176 |
| - | |
| 180 | + | |
177 | 181 |
| |
178 | 182 |
| |
179 | 183 |
| |
| |||
186 | 190 |
| |
187 | 191 |
| |
188 | 192 |
| |
| 193 | + | |
189 | 194 |
|
Lines changed: 1 addition & 13 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
187 | 187 |
| |
188 | 188 |
| |
189 | 189 |
| |
190 |
| - | |
191 |
| - | |
192 |
| - | |
193 |
| - | |
194 |
| - | |
195 |
| - | |
196 |
| - | |
197 |
| - | |
198 |
| - | |
199 |
| - | |
200 |
| - | |
201 |
| - | |
202 | 190 |
| |
203 | 191 |
| |
204 | 192 |
| |
| |||
899 | 887 |
| |
900 | 888 |
| |
901 | 889 |
| |
902 |
| - | |
| 890 | + | |
903 | 891 |
| |
904 | 892 |
| |
905 | 893 |
| |
|
Lines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
51 | 51 |
| |
52 | 52 |
| |
53 | 53 |
| |
| 54 | + | |
| 55 | + | |
| 56 | + | |
54 | 57 |
| |
55 | 58 |
| |
56 | 59 |
| |
| |||
61 | 64 |
| |
62 | 65 |
| |
63 | 66 |
| |
| 67 | + | |
| 68 | + | |
| 69 | + | |
64 | 70 |
| |
65 | 71 |
| |
66 | 72 |
| |
|
Lines changed: 5 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
40 | 40 |
| |
41 | 41 |
| |
42 | 42 |
| |
43 |
| - | |
| 43 | + | |
44 | 44 |
| |
45 | 45 |
| |
46 | 46 |
| |
| |||
56 | 56 |
| |
57 | 57 |
| |
58 | 58 |
| |
59 |
| - | |
| 59 | + | |
60 | 60 |
| |
61 | 61 |
| |
62 | 62 |
| |
| |||
73 | 73 |
| |
74 | 74 |
| |
75 | 75 |
| |
76 |
| - | |
| 76 | + | |
77 | 77 |
| |
78 | 78 |
| |
79 | 79 |
| |
| |||
89 | 89 |
| |
90 | 90 |
| |
91 | 91 |
| |
92 |
| - | |
| 92 | + | |
93 | 93 |
| |
94 | 94 |
| |
95 | 95 |
| |
| |||
107 | 107 |
| |
108 | 108 |
| |
109 | 109 |
| |
110 |
| - | |
| 110 | + | |
111 | 111 |
| |
112 | 112 |
| |
113 | 113 |
| |
|
0 commit comments
Comments
(0)