forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit80a48e0
committed
Fix MERGE command tag for cross-partition updates.
This ensures that the row count in the command tag for a MERGE iscorrectly computed. Previously, if MERGE updated a partitioned table,the row count would be incorrect if any row was moved to a differentpartition, since such updates were counted twice.Back-patch to v15, where MERGE was introduced.Discussion:https://postgr.es/m/CAEZATCWRMG7XX2QEsVL1LswmNo2d_YG8tKTLkpD3=Lp644S7rg@mail.gmail.com1 parent2ddab01 commit80a48e0
File tree
3 files changed
+28
-1
lines changed- src
- backend/executor
- test/regress
- expected
- sql
3 files changed
+28
-1
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2878 | 2878 |
| |
2879 | 2879 |
| |
2880 | 2880 |
| |
2881 |
| - | |
| 2881 | + | |
2882 | 2882 |
| |
2883 | 2883 |
| |
2884 | 2884 |
| |
|
Lines changed: 16 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1582 | 1582 |
| |
1583 | 1583 |
| |
1584 | 1584 |
| |
| 1585 | + | |
| 1586 | + | |
| 1587 | + | |
| 1588 | + | |
1585 | 1589 |
| |
1586 | 1590 |
| |
1587 | 1591 |
| |
1588 | 1592 |
| |
1589 | 1593 |
| |
1590 | 1594 |
| |
1591 | 1595 |
| |
| 1596 | + | |
| 1597 | + | |
| 1598 | + | |
| 1599 | + | |
| 1600 | + | |
| 1601 | + | |
| 1602 | + | |
| 1603 | + | |
| 1604 | + | |
| 1605 | + | |
| 1606 | + | |
| 1607 | + | |
1592 | 1608 |
| |
1593 | 1609 |
| |
1594 | 1610 |
| |
|
Lines changed: 11 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
999 | 999 |
| |
1000 | 1000 |
| |
1001 | 1001 |
| |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
1002 | 1006 |
| |
1003 | 1007 |
| |
1004 | 1008 |
| |
1005 | 1009 |
| |
1006 | 1010 |
| |
1007 | 1011 |
| |
1008 | 1012 |
| |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
1009 | 1020 |
| |
1010 | 1021 |
| |
1011 | 1022 |
| |
|
0 commit comments
Comments
(0)