forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit88b45aa
committed
Clean up range-table building in copy.c
Commit804b6b6 added the build of arange table in copy.c to initialize the EState es_range_table since itcan be needed in error paths. Unfortunately, that commit didn'tappreciate that some code paths might end up not initializing the rtewhich is used to build the range table.Fix that and clean up a couple others things along the way- build itonly once and don't explicitly set it on the !is_from path as itdoesn't make any sense there (cstate is palloc0'd, so this isn't anissue from an initializing standpoint either).The prior commit went back to 9.0, but this only goes back to 9.1 asprior to that the range table build happens immediately after buildingthe RTE and therefore doesn't suffer from this issue.Pointed out by Robert.1 parent9406884 commit88b45aa
1 file changed
+5
-4
lines changedLines changed: 5 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
738 | 738 |
| |
739 | 739 |
| |
740 | 740 |
| |
741 |
| - | |
| 741 | + | |
742 | 742 |
| |
743 | 743 |
| |
744 | 744 |
| |
| |||
754 | 754 |
| |
755 | 755 |
| |
756 | 756 |
| |
| 757 | + | |
757 | 758 |
| |
758 | 759 |
| |
759 | 760 |
| |
| |||
766 | 767 |
| |
767 | 768 |
| |
768 | 769 |
| |
| 770 | + | |
769 | 771 |
| |
770 | 772 |
| |
771 | 773 |
| |
| |||
779 | 781 |
| |
780 | 782 |
| |
781 | 783 |
| |
782 |
| - | |
| 784 | + | |
783 | 785 |
| |
784 | 786 |
| |
785 | 787 |
| |
| |||
796 | 798 |
| |
797 | 799 |
| |
798 | 800 |
| |
799 |
| - | |
| 801 | + | |
800 | 802 |
| |
801 | 803 |
| |
802 | 804 |
| |
803 | 805 |
| |
804 | 806 |
| |
805 | 807 |
| |
806 | 808 |
| |
807 |
| - | |
808 | 809 |
| |
809 | 810 |
| |
810 | 811 |
| |
|
0 commit comments
Comments
(0)