- Notifications
You must be signed in to change notification settings - Fork28
Commit8c8a267
committed
Fix freeing old values in index_store_float8_orderby_distances()
6cae9d2 has added an error in freeing old values inindex_store_float8_orderby_distances() function. It looks for old value inscan->xs_orderbynulls[i] after setting a new value there.This commit fixes that. Also it removes short-circuit in handlingdistances == NULL situation. Now distances == NULL will be treated the sameway as array with all null distances. That is, previous values will be freedif any.Reported-by: Tom Lane, Nikita GlukhovDiscussion:https://postgr.es/m/CAPpHfdu2wcoAVAm3Ek66rP%3Duo_C-D84%2B%2Buf1VEcbyi_caBXWCA%40mail.gmail.comDiscussion:https://postgr.es/m/426580d3-a668-b9d1-7b8e-f74d1a6524e0%40postgrespro.ruBackpatch-through: 121 parent6cae9d2 commit8c8a267
1 file changed
+20
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
852 | 852 | | |
853 | 853 | | |
854 | 854 | | |
855 | | - | |
856 | | - | |
857 | | - | |
858 | | - | |
859 | | - | |
860 | | - | |
861 | | - | |
862 | | - | |
863 | | - | |
864 | | - | |
865 | | - | |
| 855 | + | |
866 | 856 | | |
867 | | - | |
868 | | - | |
| 857 | + | |
869 | 858 | | |
870 | 859 | | |
871 | 860 | | |
872 | | - | |
873 | | - | |
874 | | - | |
875 | | - | |
876 | | - | |
877 | 861 | | |
878 | 862 | | |
879 | 863 | | |
880 | 864 | | |
881 | 865 | | |
882 | 866 | | |
883 | 867 | | |
884 | | - | |
| 868 | + | |
| 869 | + | |
885 | 870 | | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
886 | 878 | | |
887 | 879 | | |
888 | 880 | | |
| |||
892 | 884 | | |
893 | 885 | | |
894 | 886 | | |
895 | | - | |
| 887 | + | |
| 888 | + | |
896 | 889 | | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
897 | 897 | | |
898 | 898 | | |
899 | 899 | | |
| |||
0 commit comments
Comments
(0)