forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit032f9ae

Etsuro Fujita
Avoid redundant checks in partition_bounds_copy().
Previously, partition_bounds_copy() checked whether the strategy for thegiven partition bounds was hash or not, and then determined the number ofelements in the datums in the datums array for the partition bounds, oneach iteration of the loop for copying the datums array, but there is noneed to do that. Perform the checks only once before the loop iteration.Author: Etsuro FujitaReported-by: Amit Langote and Julien RouhaudDiscussion:https://postgr.es/m/CAPmGK14Rvxrm8DHWvCjdoks6nwZuHBPvMnWZ6rkEx2KhFeEoPQ@mail.gmail.com1 parent9573384 commit032f9ae
1 file changed
+9
-7
lines changedLines changed: 9 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
789 | 789 |
| |
790 | 790 |
| |
791 | 791 |
| |
| 792 | + | |
| 793 | + | |
792 | 794 |
| |
793 | 795 |
| |
794 | 796 |
| |
| |||
819 | 821 |
| |
820 | 822 |
| |
821 | 823 |
| |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
822 | 831 |
| |
823 | 832 |
| |
824 | 833 |
| |
825 | 834 |
| |
826 |
| - | |
827 |
| - | |
828 |
| - | |
829 |
| - | |
830 |
| - | |
831 |
| - | |
832 |
| - | |
833 | 835 |
| |
834 | 836 |
| |
835 | 837 |
| |
|
0 commit comments
Comments
(0)