forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit3db0598
committed
Improve stability of tests for VACUUM (SKIP_LOCKED)
Concurrent autovacuums running with the main regression test suitecould cause the tests with VACUUM (SKIP_LOCKED) to generate randomlyWARNING messages. For these tests, set client_min_messages to ERROR toget rid of those random failures, as disabling autovacuum for therelations operated would not completely close the failure window.For isolation tests, disable autovacuum for the relations vacuumed withSKIP_LOCKED. The tests are designed so as LOCK commands are takenin a first session before running a concurrent VACUUM (SKIP_LOCKED) in asecond to generate WARNING messages, but a concurrent autovacuum couldcause the tests to be slower.Reported-by: Tom LaneAuthor: Michael PaquierReviewed-by: Andres Freund, Tom LaneDiscussion:https://postgr.es/m/25294.1573077278@sss.pgh.pa.usBackpatch-through: 121 parent2dc08bd commit3db0598
File tree
3 files changed
+10
-2
lines changed- src/test
- isolation/specs
- regress
- expected
- sql
3 files changed
+10
-2
lines changedLines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
| 10 | + | |
10 | 11 |
| |
| 12 | + | |
11 | 13 |
| |
12 | 14 |
| |
13 | 15 |
| |
|
Lines changed: 4 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
196 | 196 |
| |
197 | 197 |
| |
198 | 198 |
| |
199 |
| - | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
200 | 202 |
| |
201 | 203 |
| |
202 | 204 |
| |
| |||
205 | 207 |
| |
206 | 208 |
| |
207 | 209 |
| |
| 210 | + | |
208 | 211 |
| |
209 | 212 |
| |
210 | 213 |
| |
|
Lines changed: 4 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
158 | 158 |
| |
159 | 159 |
| |
160 | 160 |
| |
161 |
| - | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
162 | 164 |
| |
163 | 165 |
| |
164 | 166 |
| |
165 | 167 |
| |
166 | 168 |
| |
167 | 169 |
| |
168 | 170 |
| |
| 171 | + | |
169 | 172 |
| |
170 | 173 |
| |
171 | 174 |
| |
|
0 commit comments
Comments
(0)