forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit1dec820
committed
Better fix for deadlock hazard in CREATE INDEX CONCURRENTLY.
Commit54eff53 did not account for the possibility that we'd havea transaction snapshot due to default_transaction_isolation beingset high enough to require one. The transaction snapshot is enoughto hold back our advertised xmin and thus risk deadlock anyway.The only way to get rid of that snap is to start a new transaction,so let's do that instead. Also throw in an assert checking that wereally have gotten to a state where no xmin is being advertised.Back-patch to 9.4, like the previous commit.Discussion:https://postgr.es/m/CAMkU=1ztk3TpQdcUNbxq93pc80FrXUjpDWLGMeVBDx71GHNwZQ@mail.gmail.com1 parentfe7fc52 commit1dec820
1 file changed
+14
-3
lines changedLines changed: 14 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1197 | 1197 |
| |
1198 | 1198 |
| |
1199 | 1199 |
| |
1200 |
| - | |
1201 |
| - | |
1202 | 1200 |
| |
1203 | 1201 |
| |
1204 | 1202 |
| |
1205 | 1203 |
| |
1206 | 1204 |
| |
1207 |
| - | |
| 1205 | + | |
| 1206 | + | |
| 1207 | + | |
| 1208 | + | |
| 1209 | + | |
| 1210 | + | |
| 1211 | + | |
| 1212 | + | |
| 1213 | + | |
| 1214 | + | |
| 1215 | + | |
| 1216 | + | |
| 1217 | + | |
| 1218 | + | |
1208 | 1219 |
| |
1209 | 1220 |
| |
1210 | 1221 |
| |
|
0 commit comments
Comments
(0)