- Notifications
You must be signed in to change notification settings - Fork28
Commit971faef
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 parent3a07ba1 commit971faef
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 | |
---|---|---|---|
| |||
4653 | 4653 |
| |
4654 | 4654 |
| |
4655 | 4655 |
| |
| 4656 | + | |
| 4657 | + | |
| 4658 | + | |
| 4659 | + | |
| 4660 | + | |
| 4661 | + | |
| 4662 | + | |
| 4663 | + | |
| 4664 | + | |
| 4665 | + | |
| 4666 | + | |
| 4667 | + | |
| 4668 | + | |
| 4669 | + | |
| 4670 | + | |
| 4671 | + | |
| 4672 | + | |
| 4673 | + | |
| 4674 | + | |
| 4675 | + | |
| 4676 | + | |
| 4677 | + | |
| 4678 | + | |
| 4679 | + | |
| 4680 | + | |
| 4681 | + | |
| 4682 | + | |
| 4683 | + | |
| 4684 | + | |
| 4685 | + | |
| 4686 | + | |
| 4687 | + | |
| 4688 | + | |
| 4689 | + | |
| 4690 | + | |
| 4691 | + | |
| 4692 | + | |
| 4693 | + | |
| 4694 | + | |
| 4695 | + | |
| 4696 | + | |
| 4697 | + | |
| 4698 | + | |
| 4699 | + | |
| 4700 | + | |
| 4701 | + | |
| 4702 | + | |
| 4703 | + | |
| 4704 | + | |
| 4705 | + | |
| 4706 | + | |
| 4707 | + | |
| 4708 | + | |
| 4709 | + | |
| 4710 | + | |
| 4711 | + | |
| 4712 | + | |
| 4713 | + | |
| 4714 | + | |
| 4715 | + | |
4656 | 4716 |
| |
4657 | 4717 |
| |
4658 | 4718 |
| |
|
Lines changed: 24 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
842 | 842 |
| |
843 | 843 |
| |
844 | 844 |
| |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
845 | 869 |
| |
846 | 870 |
| |
847 | 871 |
| |
|
Lines changed: 4 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
488 | 488 |
| |
489 | 489 |
| |
490 | 490 |
| |
491 |
| - | |
492 |
| - | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
493 | 495 |
| |
494 | 496 |
| |
495 | 497 |
| |
|
Lines changed: 5 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6145 | 6145 |
| |
6146 | 6146 |
| |
6147 | 6147 |
| |
6148 |
| - | |
6149 |
| - | |
| 6148 | + | |
| 6149 | + | |
| 6150 | + | |
| 6151 | + | |
6150 | 6152 |
| |
6151 | 6153 |
| |
6152 | 6154 |
| |
6153 | 6155 |
| |
6154 | 6156 |
| |
6155 | 6157 |
| |
6156 | 6158 |
| |
| 6159 | + | |
6157 | 6160 |
| |
6158 | 6161 |
| |
6159 | 6162 |
| |
|
0 commit comments
Comments
(0)