forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitd54f99e
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 parent49d7165 commitd54f99e
2 files changed
+10
-0
lines changedLines changed: 5 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
102 | 102 |
| |
103 | 103 |
| |
104 | 104 |
| |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
105 | 109 |
| |
106 | 110 |
| |
| 111 | + | |
107 | 112 |
| |
108 | 113 |
| |
109 | 114 |
| |
|
Lines changed: 5 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
70 | 70 |
| |
71 | 71 |
| |
72 | 72 |
| |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
73 | 77 |
| |
| 78 | + | |
74 | 79 |
| |
75 | 80 |
| |
76 | 81 |
| |
|
0 commit comments
Comments
(0)