- Notifications
You must be signed in to change notification settings - Fork5k
Commit8b6a0e2
committed
Fix MERGE with DO NOTHING actions into a partitioned table.
ExecInitPartitionInfo() duplicates much of the logic inExecInitMerge(), except that it failed to handle DO NOTHINGactions. This would cause an "unknown action in MERGE WHEN clause"error if a MERGE with any DO NOTHING actions attempted to insert intoa partition not already initialised by ExecInitModifyTable().Bug: #18871Reported-by: Alexander Lakhin <exclusion@gmail.com>Author: Tender Wang <tndrwang@gmail.com>Reviewed-by: Gurjeet Singh <gurjeet@singh.im>Discussion:https://postgr.es/m/18871-b44e3c96de3bd2e8%40postgresql.orgBackpatch-through: 151 parenta0ed19e commit8b6a0e2
File tree
4 files changed
+34
-2
lines changed- src
- backend/executor
- test/regress
- expected
- sql
4 files changed
+34
-2
lines changedLines changed: 3 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
876 | 876 |
| |
877 | 877 |
| |
878 | 878 |
| |
879 |
| - | |
| 879 | + | |
880 | 880 |
| |
881 | 881 |
| |
882 | 882 |
| |
| |||
956 | 956 |
| |
957 | 957 |
| |
958 | 958 |
| |
| 959 | + | |
| 960 | + | |
959 | 961 |
| |
960 | 962 |
| |
961 | 963 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3784 | 3784 |
| |
3785 | 3785 |
| |
3786 | 3786 |
| |
3787 |
| - | |
| 3787 | + | |
3788 | 3788 |
| |
3789 | 3789 |
| |
3790 | 3790 |
| |
|
Lines changed: 17 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2060 | 2060 |
| |
2061 | 2061 |
| |
2062 | 2062 |
| |
| 2063 | + | |
| 2064 | + | |
| 2065 | + | |
| 2066 | + | |
| 2067 | + | |
| 2068 | + | |
| 2069 | + | |
| 2070 | + | |
| 2071 | + | |
| 2072 | + | |
| 2073 | + | |
| 2074 | + | |
| 2075 | + | |
| 2076 | + | |
| 2077 | + | |
| 2078 | + | |
| 2079 | + | |
2063 | 2080 |
| |
2064 | 2081 |
| |
2065 | 2082 |
| |
|
Lines changed: 13 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1271 | 1271 |
| |
1272 | 1272 |
| |
1273 | 1273 |
| |
| 1274 | + | |
| 1275 | + | |
| 1276 | + | |
| 1277 | + | |
| 1278 | + | |
| 1279 | + | |
| 1280 | + | |
| 1281 | + | |
| 1282 | + | |
| 1283 | + | |
| 1284 | + | |
| 1285 | + | |
| 1286 | + | |
1274 | 1287 |
| |
1275 | 1288 |
| |
1276 | 1289 |
| |
|
0 commit comments
Comments
(0)