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

Amit Kapila
Allow relation extension lock to conflict among parallel group members.
This is required as it is no safer for two related processes to extend thesame relation at a time than for unrelated processes to do the same. Wedon't acquire a heavyweight lock on any other object after relationextension lock which means such a lock can never participate in thedeadlock cycle. So, avoid checking wait edges from this lock.This provides an infrastructure to allow parallel operations like insert,copy, etc. which were earlier not possible as parallel group members won'tconflict for relation extension lock.Author: Dilip Kumar, Amit KapilaReviewed-by: Amit Kapila, Kuntal Ghosh and Sawada MasahikoDiscussion:https://postgr.es/m/CAD21AoCmT3cFQUN4aVvzy5chw7DuzXrJCbrjTU05B+Ss=Gn1LA@mail.gmail.com1 parentb27e1b3 commit85f6b49
File tree
4 files changed
+26
-1
lines changed- src
- backend/storage/lmgr
- include/storage
4 files changed
+26
-1
lines changedLines changed: 8 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
555 | 555 |
| |
556 | 556 |
| |
557 | 557 |
| |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
558 | 566 |
| |
559 | 567 |
| |
560 | 568 |
| |
|
Lines changed: 10 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1469 | 1469 |
| |
1470 | 1470 |
| |
1471 | 1471 |
| |
| 1472 | + | |
| 1473 | + | |
| 1474 | + | |
| 1475 | + | |
| 1476 | + | |
| 1477 | + | |
| 1478 | + | |
| 1479 | + | |
| 1480 | + | |
| 1481 | + | |
1472 | 1482 |
| |
1473 | 1483 |
| |
1474 | 1484 |
| |
|
Lines changed: 7 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1077 | 1077 |
| |
1078 | 1078 |
| |
1079 | 1079 |
| |
1080 |
| - | |
| 1080 | + | |
| 1081 | + | |
| 1082 | + | |
| 1083 | + | |
| 1084 | + | |
| 1085 | + | |
| 1086 | + | |
1081 | 1087 |
| |
1082 | 1088 |
| |
1083 | 1089 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
301 | 301 |
| |
302 | 302 |
| |
303 | 303 |
| |
| 304 | + | |
304 | 305 |
| |
305 | 306 |
| |
306 | 307 |
| |
|
0 commit comments
Comments
(0)