Allow users of simplehash.h to perform direct deletions
David Rowley <drowley@postgresql.org>
Allow users of simplehash.h to perform direct deletions Previously simplehash.h only exposed a method to perform a hash table delete using the hash table key. This meant that the delete function had to perform a hash lookup in order to find the entry to delete. Here we add a new function so that users of simplehash.h can perform a hash delete directly using the entry pointer, thus saving the hash lookup. An upcoming patch that uses simplehash.h already has performed the hash lookup so already has the entry pointer. This change will allow the code in that patch to perform the hash delete without the code in simplehash.h having to perform an additional hash lookup. Author: David Rowley Reviewed-by: Andres Freund Discussion: https://postgr.es/m/CAApHDvqFLXXge153WmPsjke5VGOSt7Ez0yD0c7eBXLfmWxs3Kw@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/include/lib/simplehash.h | modified | +61 −1 |
Discussion
- Hybrid Hash/Nested Loop joins and caching results from subplans 107 messages · 2020-05-20 → 2021-05-26