forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commita482043
committed
Fix overlooked relcache invalidation in ALTER TABLE ... ALTER CONSTRAINT.
When altering the deferredness state of a foreign key constraint, wecorrectly updated the catalogs and then invalidated the relcache state forthe target relation ... but that's not the only relation with relevanttriggers. Must invalidate the other table as well, or the state changefails to take effect promptly for operations triggered on the other table.Per bug #13224 from Christian Ullrich.In passing, reorganize regression test case for this feature so that itisn't randomly injected into the middle of an unrelated test sequence.Oversight in commitf177cbf. Back-patchto 9.4 where the faulty code was added.1 parentf707b53 commita482043
File tree
3 files changed
+70
-42
lines changed- src
- backend/commands
- test/regress
- expected
- sql
3 files changed
+70
-42
lines changedLines changed: 19 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6603 | 6603 |
| |
6604 | 6604 |
| |
6605 | 6605 |
| |
| 6606 | + | |
6606 | 6607 |
| |
6607 | 6608 |
| |
6608 | 6609 |
| |
6609 | 6610 |
| |
6610 | 6611 |
| |
6611 |
| - | |
6612 | 6612 |
| |
6613 | 6613 |
| |
6614 | 6614 |
| |
| |||
6655 | 6655 |
| |
6656 | 6656 |
| |
6657 | 6657 |
| |
6658 |
| - | |
| 6658 | + | |
6659 | 6659 |
| |
6660 | 6660 |
| |
6661 | 6661 |
| |
| 6662 | + | |
6662 | 6663 |
| |
6663 | 6664 |
| |
6664 | 6665 |
| |
| |||
6691 | 6692 |
| |
6692 | 6693 |
| |
6693 | 6694 |
| |
| 6695 | + | |
| 6696 | + | |
6694 | 6697 |
| |
6695 | 6698 |
| |
| 6699 | + | |
| 6700 | + | |
| 6701 | + | |
| 6702 | + | |
| 6703 | + | |
| 6704 | + | |
6696 | 6705 |
| |
6697 | 6706 |
| |
6698 | 6707 |
| |
| |||
6709 | 6718 |
| |
6710 | 6719 |
| |
6711 | 6720 |
| |
6712 |
| - | |
| 6721 | + | |
| 6722 | + | |
| 6723 | + | |
| 6724 | + | |
6713 | 6725 |
| |
6714 | 6726 |
| |
| 6727 | + | |
| 6728 | + | |
| 6729 | + | |
| 6730 | + | |
6715 | 6731 |
| |
6716 | 6732 |
| |
6717 | 6733 |
| |
|
Lines changed: 24 additions & 19 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1132 | 1132 |
| |
1133 | 1133 |
| |
1134 | 1134 |
| |
1135 |
| - | |
1136 |
| - | |
1137 |
| - | |
1138 |
| - | |
1139 |
| - | |
1140 |
| - | |
1141 |
| - | |
1142 |
| - | |
1143 |
| - | |
1144 | 1135 |
| |
1145 | 1136 |
| |
1146 | 1137 |
| |
| |||
1151 | 1142 |
| |
1152 | 1143 |
| |
1153 | 1144 |
| |
1154 |
| - | |
1155 |
| - | |
1156 |
| - | |
1157 |
| - | |
1158 |
| - | |
1159 |
| - | |
1160 |
| - | |
1161 |
| - | |
1162 |
| - | |
1163 |
| - | |
1164 | 1145 |
| |
1165 | 1146 |
| |
1166 | 1147 |
| |
| |||
1198 | 1179 |
| |
1199 | 1180 |
| |
1200 | 1181 |
| |
| 1182 | + | |
| 1183 | + | |
| 1184 | + | |
| 1185 | + | |
| 1186 | + | |
| 1187 | + | |
| 1188 | + | |
| 1189 | + | |
| 1190 | + | |
| 1191 | + | |
| 1192 | + | |
| 1193 | + | |
| 1194 | + | |
| 1195 | + | |
| 1196 | + | |
| 1197 | + | |
| 1198 | + | |
| 1199 | + | |
| 1200 | + | |
| 1201 | + | |
| 1202 | + | |
| 1203 | + | |
| 1204 | + | |
| 1205 | + | |
1201 | 1206 |
| |
1202 | 1207 |
| |
1203 | 1208 |
| |
|
Lines changed: 27 additions & 20 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
818 | 818 |
| |
819 | 819 |
| |
820 | 820 |
| |
821 |
| - | |
822 |
| - | |
823 |
| - | |
824 |
| - | |
825 |
| - | |
826 |
| - | |
827 |
| - | |
828 | 821 |
| |
829 | 822 |
| |
830 | 823 |
| |
| |||
838 | 831 |
| |
839 | 832 |
| |
840 | 833 |
| |
841 |
| - | |
842 |
| - | |
843 |
| - | |
844 |
| - | |
845 |
| - | |
846 |
| - | |
847 |
| - | |
848 |
| - | |
849 |
| - | |
850 |
| - | |
851 |
| - | |
852 |
| - | |
853 |
| - | |
854 | 834 |
| |
855 | 835 |
| |
856 | 836 |
| |
| |||
900 | 880 |
| |
901 | 881 |
| |
902 | 882 |
| |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
903 | 910 |
| |
904 | 911 |
| |
905 | 912 |
| |
|
0 commit comments
Comments
(0)