forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit15ef6ff

Amit Kapila
Assert that we don't acquire a heavyweight lock on another object after
relation extension lock.The only exception to the rule is that we can try to acquire the samerelation extension lock more than once. This is allowed as we are notcreating any new lock for this case. This restriction implies that therelation extension lock won't ever participate in the deadlock cyclebecause we can never wait for any other heavyweight lock after acquiringthis lock.Such a restriction is okay for relation extension locks as unlike otherheavyweight locks these are not held till the transaction end. These aretaken for a short duration to extend a particular relation and thenreleased.Author: Dilip Kumar, with few changes by Amit KapilaReviewed-by: Amit Kapila, Kuntal Ghosh and Sawada MasahikoDiscussion:https://postgr.es/m/CAD21AoCmT3cFQUN4aVvzy5chw7DuzXrJCbrjTU05B+Ss=Gn1LA@mail.gmail.com1 parentb897b3a commit15ef6ff
2 files changed
+48
-0
lines changedLines changed: 47 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
170 | 170 |
| |
171 | 171 |
| |
172 | 172 |
| |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
173 | 188 |
| |
174 | 189 |
| |
175 | 190 |
| |
| |||
840 | 855 |
| |
841 | 856 |
| |
842 | 857 |
| |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
843 | 865 |
| |
844 | 866 |
| |
845 | 867 |
| |
| |||
1287 | 1309 |
| |
1288 | 1310 |
| |
1289 | 1311 |
| |
| 1312 | + | |
| 1313 | + | |
| 1314 | + | |
| 1315 | + | |
| 1316 | + | |
| 1317 | + | |
| 1318 | + | |
| 1319 | + | |
| 1320 | + | |
| 1321 | + | |
| 1322 | + | |
| 1323 | + | |
| 1324 | + | |
| 1325 | + | |
| 1326 | + | |
| 1327 | + | |
| 1328 | + | |
1290 | 1329 |
| |
1291 | 1330 |
| |
1292 | 1331 |
| |
| |||
1322 | 1361 |
| |
1323 | 1362 |
| |
1324 | 1363 |
| |
| 1364 | + | |
| 1365 | + | |
| 1366 | + | |
| 1367 | + | |
| 1368 | + | |
1325 | 1369 |
| |
1326 | 1370 |
| |
1327 | 1371 |
| |
| |||
1618 | 1662 |
| |
1619 | 1663 |
| |
1620 | 1664 |
| |
| 1665 | + | |
| 1666 | + | |
| 1667 | + | |
1621 | 1668 |
| |
1622 | 1669 |
| |
1623 | 1670 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
419 | 419 |
| |
420 | 420 |
| |
421 | 421 |
| |
| 422 | + | |
422 | 423 |
| |
423 | 424 |
| |
424 | 425 |
| |
|
0 commit comments
Comments
(0)