simplehash: Allow use of simplehash without MemoryContext.
Robert Haas <rhaas@postgresql.org>
simplehash: Allow use of simplehash without MemoryContext. If the SH_RAW_ALLOCATOR is defined, it will be used to allocate bytes for the hash table, and no dependencies on MemoryContext will exist. This means, in particular, that the SH_CREATE function will not take a MemoryContext argument. Patch by me, reviewed by Andres Freund. Discussion: http://postgr.es/m/CA+Tgmob8oyh02NrZW=xCScB+5GyJ-jVowE3+TWTUmPF=FsGWTA@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/include/lib/simplehash.h | modified | +23 −0 |
Discussion
- allowing broader use of simplehash 8 messages · 2019-12-10 → 2019-12-17