forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitff53d7b
committed
Allow users of simplehash.h to perform direct deletions
Previously simplehash.h only exposed a method to perform a hash tabledelete using the hash table key. This meant that the delete function hadto perform a hash lookup in order to find the entry to delete. Here weadd a new function so that users of simplehash.h can perform a hash deletedirectly using the entry pointer, thus saving the hash lookup.An upcoming patch that uses simplehash.h already has performed the hashlookup so already has the entry pointer. This change will allow thecode in that patch to perform the hash delete without the code insimplehash.h having to perform an additional hash lookup.Author: David RowleyReviewed-by: Andres FreundDiscussion:https://postgr.es/m/CAApHDvqFLXXge153WmPsjke5VGOSt7Ez0yD0c7eBXLfmWxs3Kw@mail.gmail.com1 parentbc9f1af commitff53d7b
1 file changed
+61
-1
lines changedLines changed: 61 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
110 | 110 |
| |
111 | 111 |
| |
112 | 112 |
| |
| 113 | + | |
113 | 114 |
| |
114 | 115 |
| |
115 | 116 |
| |
| |||
217 | 218 |
| |
218 | 219 |
| |
219 | 220 |
| |
| 221 | + | |
| 222 | + | |
| 223 | + | |
220 | 224 |
| |
221 | 225 |
| |
222 | 226 |
| |
| |||
829 | 833 |
| |
830 | 834 |
| |
831 | 835 |
| |
832 |
| - | |
| 836 | + | |
833 | 837 |
| |
834 | 838 |
| |
835 | 839 |
| |
| |||
900 | 904 |
| |
901 | 905 |
| |
902 | 906 |
| |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
903 | 962 |
| |
904 | 963 |
| |
905 | 964 |
| |
| |||
1102 | 1161 |
| |
1103 | 1162 |
| |
1104 | 1163 |
| |
| 1164 | + | |
1105 | 1165 |
| |
1106 | 1166 |
| |
1107 | 1167 |
| |
|
0 commit comments
Comments
(0)