forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitfe246d1
committed
Improve stability of test with vacuum_truncate in reloptions.sql
This test has been using a simple VACUUM with pg_relation_size() tocheck if a relation gets physically truncated or not, but forgot thefact that some concurrent activity, like checkpoint buffer writes, couldcause some pages to be skipped. The second test enablingvacuum_truncate could fail, seeing a non-empty relation. The first testwould not have failed, but could finish by testing a behavior differentthan the one aimed for. Both tests gain a FREEZE option, to make thevacuums more aggressive and prevent page skips.This is similar to the issues fixed inc2dc1a7.Author: Arseny SherReviewed-by: Masahiko SawadaDiscussion:https://postgr.es/m/87tuotr2hh.fsf@ars-thinkpadbackpatch-through: 121 parent1ebdec8 commitfe246d1
2 files changed
+8
-4
lines changedLines changed: 4 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
102 | 102 |
| |
103 | 103 |
| |
104 | 104 |
| |
105 |
| - | |
| 105 | + | |
| 106 | + | |
106 | 107 |
| |
107 | 108 |
| |
108 | 109 |
| |
| |||
127 | 128 |
| |
128 | 129 |
| |
129 | 130 |
| |
130 |
| - | |
| 131 | + | |
| 132 | + | |
131 | 133 |
| |
132 | 134 |
| |
133 | 135 |
| |
|
Lines changed: 4 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
61 | 61 |
| |
62 | 62 |
| |
63 | 63 |
| |
64 |
| - | |
| 64 | + | |
| 65 | + | |
65 | 66 |
| |
66 | 67 |
| |
67 | 68 |
| |
| |||
71 | 72 |
| |
72 | 73 |
| |
73 | 74 |
| |
74 |
| - | |
| 75 | + | |
| 76 | + | |
75 | 77 |
| |
76 | 78 |
| |
77 | 79 |
| |
|
0 commit comments
Comments
(0)