forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit1c7a66a
committed
Remove unnecessary dependency on statement_timeout in prepared_xacts test.
Rather than waiting around for statement_timeout to expire, we can justtry to take the table's lock in nowait mode. This saves some fractionunder 4 seconds when running this test with prepared xacts available,and it guards against timeout-expired-anyway failures on very slowmachines when prepared xacts are not available, as seen in a recentfailure on axolotl for instance.This approach could fail if autovacuum were to take an exclusive lockon the test table concurrently, but there's no reason for it to do so.Since the main point here is to improve stability in the buildfarm,back-patch to all supported branches.1 parent9ca5c87 commit1c7a66a
File tree
3 files changed
+8
-22
lines changed- src/test/regress
- expected
- sql
3 files changed
+8
-22
lines changedLines changed: 4 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
195 | 195 |
| |
196 | 196 |
| |
197 | 197 |
| |
198 |
| - | |
199 |
| - | |
200 |
| - | |
| 198 | + | |
| 199 | + | |
201 | 200 |
| |
202 | 201 |
| |
203 | 202 |
| |
| |||
211 | 210 |
| |
212 | 211 |
| |
213 | 212 |
| |
214 |
| - | |
215 |
| - | |
216 |
| - | |
| 213 | + | |
| 214 | + | |
217 | 215 |
| |
218 | 216 |
| |
219 | 217 |
| |
|
Lines changed: 2 additions & 12 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
199 | 199 |
| |
200 | 200 |
| |
201 | 201 |
| |
202 |
| - | |
203 |
| - | |
204 |
| - | |
205 |
| - | |
206 |
| - | |
207 |
| - | |
| 202 | + | |
208 | 203 |
| |
209 | 204 |
| |
210 | 205 |
| |
| |||
216 | 211 |
| |
217 | 212 |
| |
218 | 213 |
| |
219 |
| - | |
220 |
| - | |
221 |
| - | |
222 |
| - | |
223 |
| - | |
224 |
| - | |
| 214 | + | |
225 | 215 |
| |
226 | 216 |
| |
227 | 217 |
| |
|
Lines changed: 2 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
123 | 123 |
| |
124 | 124 |
| |
125 | 125 |
| |
126 |
| - | |
127 |
| - | |
| 126 | + | |
128 | 127 |
| |
129 | 128 |
| |
130 | 129 |
| |
| |||
135 | 134 |
| |
136 | 135 |
| |
137 | 136 |
| |
138 |
| - | |
139 |
| - | |
| 137 | + | |
140 | 138 |
| |
141 | 139 |
| |
142 | 140 |
| |
|
0 commit comments
Comments
(0)