- Notifications
You must be signed in to change notification settings - Fork28
Commite6242c1
committed
Set range table for CopyFrom() in tablesync
CopyFrom() needs a range table for formatting certain errors forconstraint violations.This changes the mechanism of how the range table is passed to theCopyFrom() executor state. We used to generate the range table and oneentry for the relation manually inside DoCopy(). Now we useaddRangeTableEntryForRelation() to setup the range table and relationentry for the ParseState, which is then passed down by BeginCopyFrom().Author: Petr Jelinek <petr.jelinek@2ndquadrant.com>Reported-by: Euler Taveira <euler@timbira.com.br>1 parentee69221 commite6242c1
2 files changed
+15
-12
lines changedLines changed: 8 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
37 | 37 |
| |
38 | 38 |
| |
39 | 39 |
| |
| 40 | + | |
40 | 41 |
| |
41 | 42 |
| |
42 | 43 |
| |
| |||
787 | 788 |
| |
788 | 789 |
| |
789 | 790 |
| |
790 |
| - | |
791 | 791 |
| |
792 | 792 |
| |
793 | 793 |
| |
| |||
809 | 809 |
| |
810 | 810 |
| |
811 | 811 |
| |
812 |
| - | |
813 | 812 |
| |
814 | 813 |
| |
815 | 814 |
| |
| |||
822 | 821 |
| |
823 | 822 |
| |
824 | 823 |
| |
825 |
| - | |
826 |
| - | |
827 |
| - | |
828 |
| - | |
829 |
| - | |
830 |
| - | |
| 824 | + | |
| 825 | + | |
831 | 826 |
| |
832 | 827 |
| |
833 | 828 |
| |
| |||
841 | 836 |
| |
842 | 837 |
| |
843 | 838 |
| |
844 |
| - | |
| 839 | + | |
845 | 840 |
| |
846 | 841 |
| |
847 | 842 |
| |
| |||
977 | 972 |
| |
978 | 973 |
| |
979 | 974 |
| |
980 |
| - | |
981 | 975 |
| |
982 | 976 |
| |
983 | 977 |
| |
| |||
2921 | 2915 |
| |
2922 | 2916 |
| |
2923 | 2917 |
| |
| 2918 | + | |
| 2919 | + | |
| 2920 | + | |
| 2921 | + | |
2924 | 2922 |
| |
2925 | 2923 |
| |
2926 | 2924 |
| |
|
Lines changed: 7 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
93 | 93 |
| |
94 | 94 |
| |
95 | 95 |
| |
| 96 | + | |
| 97 | + | |
96 | 98 |
| |
97 | 99 |
| |
98 | 100 |
| |
| |||
654 | 656 |
| |
655 | 657 |
| |
656 | 658 |
| |
| 659 | + | |
657 | 660 |
| |
658 | 661 |
| |
659 | 662 |
| |
| |||
680 | 683 |
| |
681 | 684 |
| |
682 | 685 |
| |
683 |
| - | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
684 | 689 |
| |
685 |
| - | |
| 690 | + | |
686 | 691 |
| |
687 | 692 |
| |
688 | 693 |
| |
|
0 commit comments
Comments
(0)