forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit7c0ca29
committed
Don't lock tables in RelationGetPartitionDispatchInfo.
Instead, lock them in the caller using find_all_inheritors so thatthey get locked in the standard order, minimizing deadlock risks.Also in RelationGetPartitionDispatchInfo, avoid opening tables whichare not partitioned; there's no need.Amit Langote, reviewed by Ashutosh Bapat and Amit KhandekarDiscussion:http://postgr.es/m/91b36fa1-c197-b72f-ca6e-56c593bae68c@lab.ntt.co.jp1 parentde1ca69 commit7c0ca29
File tree
3 files changed
+37
-31
lines changed- src
- backend
- catalog
- executor
- include/catalog
3 files changed
+37
-31
lines changedLines changed: 29 additions & 26 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1000 | 1000 |
| |
1001 | 1001 |
| |
1002 | 1002 |
| |
1003 |
| - | |
1004 |
| - | |
1005 |
| - | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
1006 | 1010 |
| |
1007 | 1011 |
| |
1008 |
| - | |
| 1012 | + | |
1009 | 1013 |
| |
1010 | 1014 |
| |
1011 | 1015 |
| |
| |||
1020 | 1024 |
| |
1021 | 1025 |
| |
1022 | 1026 |
| |
1023 |
| - | |
1024 |
| - | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
1025 | 1032 |
| |
1026 |
| - | |
1027 |
| - | |
1028 |
| - | |
1029 |
| - | |
1030 |
| - | |
| 1033 | + | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
| 1037 | + | |
| 1038 | + | |
1031 | 1039 |
| |
1032 | 1040 |
| |
1033 | 1041 |
| |
| |||
1036 | 1044 |
| |
1037 | 1045 |
| |
1038 | 1046 |
| |
1039 |
| - | |
| 1047 | + | |
1040 | 1048 |
| |
1041 |
| - | |
1042 | 1049 |
| |
1043 |
| - | |
1044 |
| - | |
1045 |
| - | |
1046 |
| - | |
1047 |
| - | |
| 1050 | + | |
1048 | 1051 |
| |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
| 1056 | + | |
| 1057 | + | |
| 1058 | + | |
| 1059 | + | |
1049 | 1060 |
| |
1050 | 1061 |
| |
1051 | 1062 |
| |
1052 | 1063 |
| |
1053 | 1064 |
| |
1054 |
| - | |
1055 |
| - | |
1056 |
| - | |
1057 |
| - | |
1058 |
| - | |
1059 |
| - | |
1060 |
| - | |
1061 |
| - | |
1062 | 1065 |
| |
1063 | 1066 |
| |
1064 | 1067 |
| |
|
Lines changed: 7 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
43 | 43 |
| |
44 | 44 |
| |
45 | 45 |
| |
| 46 | + | |
46 | 47 |
| |
47 | 48 |
| |
48 | 49 |
| |
| |||
3249 | 3250 |
| |
3250 | 3251 |
| |
3251 | 3252 |
| |
3252 |
| - | |
3253 |
| - | |
3254 |
| - | |
| 3253 | + | |
| 3254 | + | |
| 3255 | + | |
| 3256 | + | |
| 3257 | + | |
| 3258 | + | |
3255 | 3259 |
| |
3256 | 3260 |
| |
3257 | 3261 |
| |
|
Lines changed: 1 addition & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
87 | 87 |
| |
88 | 88 |
| |
89 | 89 |
| |
90 |
| - | |
91 |
| - | |
| 90 | + | |
92 | 91 |
| |
93 | 92 |
| |
94 | 93 |
| |
|
0 commit comments
Comments
(0)