forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit44f4986
committed
Fix rare deadlock failure in create_am regression test.
The "DROP ACCESS METHOD gist2" test will require locking the indexto be dropped and then its table; while most ordinary operationslock a table first then its index. While no concurrent test scriptsshould be touching fast_emp4000, autovacuum might chance to beprocessing that table when the DROP runs, resulting in a deadlockfailure. This is pretty rare but we see it in the buildfarm fromtime to time.To fix, acquire a lock on fast_emp4000 before issuing the DROP.Since the point of the exercise is mostly to prevent buildfarmfailures, back-patch to 9.6 where this test was introduced.Discussion:https://postgr.es/m/839004.1599185607@sss.pgh.pa.us1 parent2a938c7 commit44f4986
2 files changed
+10
-0
lines changedLines changed: 5 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
99 | 99 |
| |
100 | 100 |
| |
101 | 101 |
| |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
102 | 106 |
| |
103 | 107 |
| |
| 108 | + |
Lines changed: 5 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
67 | 67 |
| |
68 | 68 |
| |
69 | 69 |
| |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
70 | 74 |
| |
| 75 | + |
0 commit comments
Comments
(0)