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

Amit Kapila
Revert the commits related to allowing page lock to conflict among parallel group members.
This commit reverts the work done by commits3ba59cc and72e78d8.Those commits were incorrect in asserting that we never acquire any otherheavy-weight lock after acquring page lock other than relation extensionlock. We can acquire a lock on catalogs while doing catalog look up afteracquring page lock.This won't impact any existing feature but we need to think some other wayto achieve this before parallelizing other write operations or evenimproving the parallelism in vacuum (like allowing multiple workersfor an index).Reported-by: Jaime CasanovaAuthor: Amit KapilaBackpatch-through: 13Discussion:https://postgr.es/m/CAJKUy5jffnRKNvRHKQ0LynRb0RJC-o4P8Ku3x9vGAVLwDBWumQ@mail.gmail.com1 parentae6d06f commitcc32ec2
File tree
5 files changed
+34
-65
lines changed- src/backend
- optimizer/plan
- storage/lmgr
5 files changed
+34
-65
lines changedLines changed: 7 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
330 | 330 |
| |
331 | 331 |
| |
332 | 332 |
| |
333 |
| - | |
334 |
| - | |
335 |
| - | |
336 |
| - | |
337 |
| - | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
338 | 340 |
| |
339 | 341 |
| |
340 | 342 |
| |
|
Lines changed: 13 additions & 21 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
597 | 597 |
| |
598 | 598 |
| |
599 | 599 |
| |
600 |
| - | |
601 |
| - | |
602 |
| - | |
603 |
| - | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
604 | 604 |
| |
605 | 605 |
| |
606 | 606 |
| |
| |||
638 | 638 |
| |
639 | 639 |
| |
640 | 640 |
| |
641 |
| - | |
642 |
| - | |
643 |
| - | |
644 |
| - | |
645 |
| - | |
646 |
| - | |
647 |
| - | |
648 |
| - | |
649 |
| - | |
650 |
| - | |
651 |
| - | |
652 |
| - | |
653 |
| - | |
654 |
| - | |
655 |
| - | |
656 |
| - | |
657 |
| - | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
658 | 650 |
| |
659 | 651 |
| |
660 | 652 |
| |
|
Lines changed: 4 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
546 | 546 |
| |
547 | 547 |
| |
548 | 548 |
| |
549 |
| - | |
550 |
| - | |
551 |
| - | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
552 | 552 |
| |
553 |
| - | |
554 |
| - | |
| 553 | + | |
555 | 554 |
| |
556 | 555 |
| |
557 | 556 |
| |
|
Lines changed: 4 additions & 28 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
186 | 186 |
| |
187 | 187 |
| |
188 | 188 |
| |
189 |
| - | |
190 |
| - | |
191 |
| - | |
192 |
| - | |
193 |
| - | |
194 |
| - | |
195 |
| - | |
196 |
| - | |
197 |
| - | |
198 |
| - | |
199 |
| - | |
200 |
| - | |
201 | 189 |
| |
202 | 190 |
| |
203 | 191 |
| |
| |||
886 | 874 |
| |
887 | 875 |
| |
888 | 876 |
| |
889 |
| - | |
890 |
| - | |
891 |
| - | |
892 |
| - | |
893 |
| - | |
894 |
| - | |
895 |
| - | |
896 | 877 |
| |
897 | 878 |
| |
898 | 879 |
| |
| |||
1340 | 1321 |
| |
1341 | 1322 |
| |
1342 | 1323 |
| |
1343 |
| - | |
| 1324 | + | |
1344 | 1325 |
| |
1345 | 1326 |
| |
1346 |
| - | |
| 1327 | + | |
1347 | 1328 |
| |
1348 | 1329 |
| |
1349 | 1330 |
| |
| |||
1353 | 1334 |
| |
1354 | 1335 |
| |
1355 | 1336 |
| |
1356 |
| - | |
1357 |
| - | |
1358 |
| - | |
1359 | 1337 |
| |
1360 | 1338 |
| |
1361 | 1339 |
| |
| |||
1480 | 1458 |
| |
1481 | 1459 |
| |
1482 | 1460 |
| |
1483 |
| - | |
1484 |
| - | |
| 1461 | + | |
1485 | 1462 |
| |
1486 |
| - | |
1487 |
| - | |
| 1463 | + | |
1488 | 1464 |
| |
1489 | 1465 |
| |
1490 | 1466 |
| |
|
Lines changed: 6 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1021 | 1021 |
| |
1022 | 1022 |
| |
1023 | 1023 |
| |
1024 |
| - | |
1025 |
| - | |
1026 |
| - | |
1027 |
| - | |
1028 |
| - | |
1029 |
| - | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
1030 | 1030 |
| |
1031 | 1031 |
| |
1032 | 1032 |
| |
|
0 commit comments
Comments
(0)