forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit7086be6
committed
When WCOs are present, disable direct foreign table modification.
If the user modifies a view that has CHECK OPTIONs and this getstranslated into a modification to an underlying relation which happensto be a foreign table, the check options should be enforced. In thenormal code path, that was happening properly, but it was not workingproperly for "direct" modification because the whole operation getspushed to the remote side in that case and we never have an option toenforce the constraint against individual tuples. Fix by disablingdirect modification when there is a need to enforce CHECK OPTIONs.Etsuro Fujita, reviewed by Kyotaro Horiguchi and by me.Discussion:http://postgr.es/m/f8a48f54-6f02-9c8a-5250-9791603171ee@lab.ntt.co.jp1 parentb4af9e3 commit7086be6
File tree
4 files changed
+93
-4
lines changed- contrib/postgres_fdw
- expected
- sql
- doc/src/sgml
- src/backend/optimizer/plan
4 files changed
+93
-4
lines changedLines changed: 60 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5894 | 5894 |
| |
5895 | 5895 |
| |
5896 | 5896 |
| |
| 5897 | + | |
| 5898 | + | |
| 5899 | + | |
| 5900 | + | |
| 5901 | + | |
| 5902 | + | |
| 5903 | + | |
| 5904 | + | |
| 5905 | + | |
| 5906 | + | |
| 5907 | + | |
| 5908 | + | |
| 5909 | + | |
| 5910 | + | |
| 5911 | + | |
| 5912 | + | |
| 5913 | + | |
| 5914 | + | |
| 5915 | + | |
| 5916 | + | |
| 5917 | + | |
| 5918 | + | |
| 5919 | + | |
| 5920 | + | |
| 5921 | + | |
| 5922 | + | |
| 5923 | + | |
| 5924 | + | |
| 5925 | + | |
| 5926 | + | |
| 5927 | + | |
| 5928 | + | |
| 5929 | + | |
| 5930 | + | |
| 5931 | + | |
| 5932 | + | |
| 5933 | + | |
| 5934 | + | |
| 5935 | + | |
| 5936 | + | |
| 5937 | + | |
| 5938 | + | |
| 5939 | + | |
| 5940 | + | |
| 5941 | + | |
| 5942 | + | |
| 5943 | + | |
| 5944 | + | |
| 5945 | + | |
| 5946 | + | |
| 5947 | + | |
| 5948 | + | |
| 5949 | + | |
| 5950 | + | |
| 5951 | + | |
| 5952 | + | |
| 5953 | + | |
| 5954 | + | |
| 5955 | + | |
| 5956 | + | |
5897 | 5957 |
| |
5898 | 5958 |
| |
5899 | 5959 |
| |
|
Lines changed: 24 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1180 | 1180 |
| |
1181 | 1181 |
| |
1182 | 1182 |
| |
| 1183 | + | |
| 1184 | + | |
| 1185 | + | |
| 1186 | + | |
| 1187 | + | |
| 1188 | + | |
| 1189 | + | |
| 1190 | + | |
| 1191 | + | |
| 1192 | + | |
| 1193 | + | |
| 1194 | + | |
| 1195 | + | |
| 1196 | + | |
| 1197 | + | |
| 1198 | + | |
| 1199 | + | |
| 1200 | + | |
| 1201 | + | |
| 1202 | + | |
| 1203 | + | |
| 1204 | + | |
| 1205 | + | |
| 1206 | + | |
1183 | 1207 |
| |
1184 | 1208 |
| |
1185 | 1209 |
| |
|
Lines changed: 4 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
498 | 498 |
| |
499 | 499 |
| |
500 | 500 |
| |
501 |
| - | |
502 |
| - | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
503 | 505 |
| |
504 | 506 |
| |
505 | 507 |
| |
|
Lines changed: 5 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6500 | 6500 |
| |
6501 | 6501 |
| |
6502 | 6502 |
| |
6503 |
| - | |
6504 |
| - | |
| 6503 | + | |
| 6504 | + | |
| 6505 | + | |
| 6506 | + | |
6505 | 6507 |
| |
6506 | 6508 |
| |
6507 | 6509 |
| |
6508 | 6510 |
| |
6509 | 6511 |
| |
6510 | 6512 |
| |
6511 | 6513 |
| |
| 6514 | + | |
6512 | 6515 |
| |
6513 | 6516 |
| |
6514 | 6517 |
| |
|
0 commit comments
Comments
(0)