forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit32ad1d6
committed
Avoid deadlock between concurrent CREATE INDEX CONCURRENTLY commands.
There was a high probability of two or more concurrent C.I.C. commandsdeadlocking just before completion, because each would wait for the othersto release their reference snapshots. Fix by releasing the snapshotbefore waiting for other snapshots to go away.Per report from Paul Hinze. Back-patch to all active branches.1 parentae76795 commit32ad1d6
1 file changed
+15
-8
lines changedLines changed: 15 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
142 | 142 |
| |
143 | 143 |
| |
144 | 144 |
| |
| 145 | + | |
145 | 146 |
| |
146 | 147 |
| |
147 | 148 |
| |
| |||
576 | 577 |
| |
577 | 578 |
| |
578 | 579 |
| |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
579 | 592 |
| |
580 | 593 |
| |
581 | 594 |
| |
| |||
608 | 621 |
| |
609 | 622 |
| |
610 | 623 |
| |
611 |
| - | |
| 624 | + | |
612 | 625 |
| |
613 | 626 |
| |
614 | 627 |
| |
| |||
625 | 638 |
| |
626 | 639 |
| |
627 | 640 |
| |
628 |
| - | |
| 641 | + | |
629 | 642 |
| |
630 | 643 |
| |
631 | 644 |
| |
| |||
664 | 677 |
| |
665 | 678 |
| |
666 | 679 |
| |
667 |
| - | |
668 |
| - | |
669 |
| - | |
670 |
| - | |
671 |
| - | |
672 |
| - | |
673 | 680 |
| |
674 | 681 |
| |
675 | 682 |
| |
|
0 commit comments
Comments
(0)