- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit2d7d67c
committed
Fix random regression failure in test case "temp"
This test case could fail because of an incorrect result ordering whenlooking up at pg_class entries. This commit adds an ORDER BY to theculprit query. The cause of the failure was likely caused by a planswitch. By default, the planner would likely choose an index-only scanor an index scan, but even a small change in the startup cost could havecaused a bitmap heap scan to be chosen, causing the failure.While on it, switch some filtering quals to a regular expression as peran idea of Tom Lane. As previously shaped, the quals would haveselected any relations whose name begins with "temp". And that couldcause failures if another test running in parallel began to use similarrelation names.Per report from buildfarm member anole, though the failure was veryrare. This test has been introduced by319a810, so backpatch down tov10.Discussion:https://postgr.es/m/20190807132422.GC15695@paquier.xyzBackpatch-through: 101 parent6754fe6 commit2d7d67c
2 files changed
+10
-8
lines changedLines changed: 5 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
246 | 246 |
| |
247 | 247 |
| |
248 | 248 |
| |
249 |
| - | |
| 249 | + | |
250 | 250 |
| |
251 | 251 |
| |
252 | 252 |
| |
| |||
273 | 273 |
| |
274 | 274 |
| |
275 | 275 |
| |
276 |
| - | |
| 276 | + | |
| 277 | + | |
277 | 278 |
| |
278 | 279 |
| |
279 | 280 |
| |
| |||
290 | 291 |
| |
291 | 292 |
| |
292 | 293 |
| |
293 |
| - | |
| 294 | + | |
294 | 295 |
| |
295 | 296 |
| |
296 | 297 |
| |
| |||
309 | 310 |
| |
310 | 311 |
| |
311 | 312 |
| |
312 |
| - | |
| 313 | + | |
313 | 314 |
| |
314 | 315 |
| |
315 | 316 |
| |
|
Lines changed: 5 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
192 | 192 |
| |
193 | 193 |
| |
194 | 194 |
| |
195 |
| - | |
| 195 | + | |
196 | 196 |
| |
197 | 197 |
| |
198 | 198 |
| |
| |||
210 | 210 |
| |
211 | 211 |
| |
212 | 212 |
| |
213 |
| - | |
| 213 | + | |
| 214 | + | |
214 | 215 |
| |
215 | 216 |
| |
216 | 217 |
| |
| |||
222 | 223 |
| |
223 | 224 |
| |
224 | 225 |
| |
225 |
| - | |
| 226 | + | |
226 | 227 |
| |
227 | 228 |
| |
228 | 229 |
| |
| |||
233 | 234 |
| |
234 | 235 |
| |
235 | 236 |
| |
236 |
| - | |
| 237 | + | |
237 | 238 |
| |
238 | 239 |
| |
239 | 240 |
| |
|
0 commit comments
Comments
(0)