forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit54cde0c
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 parentecfe59e commit54cde0c
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 | |
---|---|---|---|
| |||
999 | 999 |
| |
1000 | 1000 |
| |
1001 | 1001 |
| |
1002 |
| - | |
1003 |
| - | |
1004 |
| - | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
1005 | 1009 |
| |
1006 | 1010 |
| |
1007 |
| - | |
| 1011 | + | |
1008 | 1012 |
| |
1009 | 1013 |
| |
1010 | 1014 |
| |
| |||
1019 | 1023 |
| |
1020 | 1024 |
| |
1021 | 1025 |
| |
1022 |
| - | |
1023 |
| - | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
1024 | 1031 |
| |
1025 |
| - | |
1026 |
| - | |
1027 |
| - | |
1028 |
| - | |
1029 |
| - | |
| 1032 | + | |
| 1033 | + | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
| 1037 | + | |
1030 | 1038 |
| |
1031 | 1039 |
| |
1032 | 1040 |
| |
| |||
1035 | 1043 |
| |
1036 | 1044 |
| |
1037 | 1045 |
| |
1038 |
| - | |
| 1046 | + | |
1039 | 1047 |
| |
1040 |
| - | |
1041 | 1048 |
| |
1042 |
| - | |
1043 |
| - | |
1044 |
| - | |
1045 |
| - | |
1046 |
| - | |
| 1049 | + | |
1047 | 1050 |
| |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
| 1056 | + | |
| 1057 | + | |
| 1058 | + | |
1048 | 1059 |
| |
1049 | 1060 |
| |
1050 | 1061 |
| |
1051 | 1062 |
| |
1052 | 1063 |
| |
1053 |
| - | |
1054 |
| - | |
1055 |
| - | |
1056 |
| - | |
1057 |
| - | |
1058 |
| - | |
1059 |
| - | |
1060 |
| - | |
1061 | 1064 |
| |
1062 | 1065 |
| |
1063 | 1066 |
| |
|
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 | |
---|---|---|---|
| |||
88 | 88 |
| |
89 | 89 |
| |
90 | 90 |
| |
91 |
| - | |
92 |
| - | |
| 91 | + | |
93 | 92 |
| |
94 | 93 |
| |
95 | 94 |
| |
|
0 commit comments
Comments
(0)