- Notifications
You must be signed in to change notification settings - Fork28
Commitc6be1f4
committed
Make INSERT/UPDATE queries depend on their specific target columns.
We have always created a whole-table dependency for the target relation,but that's not really good enough, as it doesn't prevent scenarios suchas dropping an individual target column or altering its type. So wehave to create an individual dependency for each target column, as well.Per report from Bill MacArthur of a rule containing UPDATE breakingafter such an alteration. Note that this patch doesn't try to makesuch cases work, only to ensure that the attempted ALTER TABLE throwsan error telling you it can't cope with adjusting the rule.This is a long-standing bug, but given the lack of prior reportsI'm not going to risk back-patching it. A back-patch wouldn't doanything to fix existing rules' dependency lists, anyway.1 parent8142166 commitc6be1f4
1 file changed
+31
-0
lines changedLines changed: 31 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1743 | 1743 |
| |
1744 | 1744 |
| |
1745 | 1745 |
| |
| 1746 | + | |
| 1747 | + | |
| 1748 | + | |
| 1749 | + | |
| 1750 | + | |
| 1751 | + | |
| 1752 | + | |
| 1753 | + | |
| 1754 | + | |
| 1755 | + | |
| 1756 | + | |
| 1757 | + | |
| 1758 | + | |
| 1759 | + | |
| 1760 | + | |
| 1761 | + | |
| 1762 | + | |
| 1763 | + | |
| 1764 | + | |
| 1765 | + | |
| 1766 | + | |
| 1767 | + | |
| 1768 | + | |
| 1769 | + | |
| 1770 | + | |
| 1771 | + | |
| 1772 | + | |
| 1773 | + | |
| 1774 | + | |
| 1775 | + | |
| 1776 | + | |
1746 | 1777 |
| |
1747 | 1778 |
| |
1748 | 1779 |
| |
|
0 commit comments
Comments
(0)