forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit1fe6668
committed
Attempt to stabilize flapping regression test
Per buildfarm animal mylodon, the plan for this test was sometimesswapping the join order for tenk1 and tenk2. Given that add_path() hasno code that would cause this fluctuation when given paths with consistentcosts, this indicates that the costs must be fluctuating in some runs.The only proven reason I've seen where that could happen was slightvariations in pg_class.relpages for some tables. This was demonstrated tobe true byf03a9ca and related discussion. Manually adjusting tenk2'spg_class.relpages by subtracting just 1 page does cause the plan to changefor this test.Here we've not gone to the same lengths to prove that's what's going onin this case. Proving that does not seem worth the time. Let's justshrink one side of the join so the additional cost of the swapped joinorder is sufficiently different that if the relpages estimate is off a fewpages that the planner still shouldn't swap the join order.Reported-by: Thomas MunroAuthor: Andy Fan, David RowleyDiscussion:https://postgr.es/m/CA+hUKGLqC-NobKYfjxNM3Gexv9OJ-Fhvy9bugUcXsZjTqH7W=Q@mail.gmail.com1 parentbf82f43 commit1fe6668
2 files changed
+4
-3
lines changedLines changed: 3 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1438 | 1438 |
| |
1439 | 1439 |
| |
1440 | 1440 |
| |
1441 |
| - | |
| 1441 | + | |
1442 | 1442 |
| |
1443 | 1443 |
| |
1444 | 1444 |
| |
| |||
1450 | 1450 |
| |
1451 | 1451 |
| |
1452 | 1452 |
| |
| 1453 | + | |
1453 | 1454 |
| |
1454 |
| - | |
| 1455 | + | |
1455 | 1456 |
| |
1456 | 1457 |
| |
1457 | 1458 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
548 | 548 |
| |
549 | 549 |
| |
550 | 550 |
| |
551 |
| - | |
| 551 | + | |
552 | 552 |
| |
553 | 553 |
| |
554 | 554 |
| |
|
0 commit comments
Comments
(0)