forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitc3d09b3
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 parent447b317 commitc3d09b3
1 file changed
+15
-8
lines changedLines changed: 15 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
320 | 320 |
| |
321 | 321 |
| |
322 | 322 |
| |
| 323 | + | |
323 | 324 |
| |
324 | 325 |
| |
325 | 326 |
| |
| |||
769 | 770 |
| |
770 | 771 |
| |
771 | 772 |
| |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
772 | 785 |
| |
773 | 786 |
| |
774 | 787 |
| |
| |||
801 | 814 |
| |
802 | 815 |
| |
803 | 816 |
| |
804 |
| - | |
| 817 | + | |
805 | 818 |
| |
806 | 819 |
| |
807 | 820 |
| |
| |||
818 | 831 |
| |
819 | 832 |
| |
820 | 833 |
| |
821 |
| - | |
| 834 | + | |
822 | 835 |
| |
823 | 836 |
| |
824 | 837 |
| |
| |||
857 | 870 |
| |
858 | 871 |
| |
859 | 872 |
| |
860 |
| - | |
861 |
| - | |
862 |
| - | |
863 |
| - | |
864 |
| - | |
865 |
| - | |
866 | 873 |
| |
867 | 874 |
| |
868 | 875 |
| |
|
0 commit comments
Comments
(0)