forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit5b1e4c1
committed
Avoid unexpected slowdown in vacuum regression test.
I noticed the "vacuum" regression test taking really significantly longerthan it used to on a slow machine. Investigation pointed the finger atcommite415b46, which added creation ofan index using an extremely expensive index function. That function wasevidently meant to be applied only twice ... but the test re-used anexisting test table, which up till a couple lines before that had had overtwo thousand rows. Depending on timing of the concurrent regression tests,the intervening VACUUMs might have been unable to remove thoserecently-dead rows, and then the index build would need to create indexentries for them too, leading to the wrap_do_analyze() function beingexecuted 2000+ times not twice. Avoid this by using a different tablethat is guaranteed to have only the intended two rows in it.Back-patch to 9.0, like the commit that created the problem.1 parent2e49461 commit5b1e4c1
2 files changed
+7
-7
lines changedLines changed: 4 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
66 | 66 |
| |
67 | 67 |
| |
68 | 68 |
| |
69 |
| - | |
70 |
| - | |
71 |
| - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
72 | 72 |
| |
73 | 73 |
| |
74 | 74 |
| |
75 | 75 |
| |
76 | 76 |
| |
77 | 77 |
| |
78 | 78 |
| |
79 |
| - | |
80 | 79 |
| |
81 | 80 |
| |
82 | 81 |
| |
| 82 | + | |
83 | 83 |
| |
84 | 84 |
|
Lines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
50 | 50 |
| |
51 | 51 |
| |
52 | 52 |
| |
53 |
| - | |
54 |
| - | |
55 |
| - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
56 | 56 |
| |
57 | 57 |
| |
58 | 58 |
| |
|
0 commit comments
Comments
(0)