forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit0811f76
committed
pg_surgery: Try to stabilize regression tests.
According to buildfarm member sungazer, the behavior of VACUUM can beunstable in these tests even if we prevent autovacuum from running onthe tables in question, apparently because even a manual vacuum canbehave differently depending on whether anything else is running thatholds back the global xmin. So use a temporary table instead, whichas of commita7212be enablesvacuuming using a more aggressive cutoff.This approach can't be used for the regression test that involves amaterialized view, but that test doesn't run vacuum, so it shouldn'tbe prone to this particular failure mode.Analysis by Tom Lane. Patch by Ashutosh Sharma and me.Discussion:http://postgr.es/m/665524.1599948007@sss.pgh.pa.us1 parent24fb35e commit0811f76
File tree
2 files changed
+8
-13
lines changed- contrib/pg_surgery
- expected
- sql
2 files changed
+8
-13
lines changedLines changed: 4 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 |
| - | |
4 |
| - | |
5 |
| - | |
| 3 | + | |
| 4 | + | |
6 | 5 |
| |
7 | 6 |
| |
8 | 7 |
| |
| |||
85 | 84 |
| |
86 | 85 |
| |
87 | 86 |
| |
88 |
| - | |
89 | 87 |
| |
90 |
| - | |
| 88 | + | |
| 89 | + | |
91 | 90 |
| |
92 | 91 |
| |
93 | 92 |
| |
| |||
175 | 174 |
| |
176 | 175 |
| |
177 | 176 |
| |
178 |
| - | |
179 | 177 |
| |
180 | 178 |
|
Lines changed: 4 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 |
| - | |
5 |
| - | |
6 |
| - | |
| 4 | + | |
| 5 | + | |
7 | 6 |
| |
8 | 7 |
| |
9 | 8 |
| |
| |||
38 | 37 |
| |
39 | 38 |
| |
40 | 39 |
| |
41 |
| - | |
42 |
| - | |
43 | 40 |
| |
44 |
| - | |
| 41 | + | |
| 42 | + | |
45 | 43 |
| |
46 | 44 |
| |
47 | 45 |
| |
| |||
86 | 84 |
| |
87 | 85 |
| |
88 | 86 |
| |
89 |
| - | |
90 | 87 |
| |
91 | 88 |
|
0 commit comments
Comments
(0)