Move bitmap_hash and bitmap_match to bitmapset.c.
Robert Haas <rhaas@postgresql.org>
Move bitmap_hash and bitmap_match to bitmapset.c. The closely-related function bms_hash_value is already defined in that file, and this change means that hashfn.c no longer needs to depend on nodes/bitmapset.h. That gets us closer to allowing use of the hash functions in hashfn.c in frontend code. Patch by me, reviewed by Suraj Kharage and Mark Dilger. Discussion: http://postgr.es/m/CA+TgmoaRiG4TXND8QuM6JXFRkM_1wL2ZNhzaUKsuec9-4yrkgw@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/nodes/bitmapset.c | modified | +23 −0 |
| src/backend/utils/hash/hashfn.c | modified | +0 −24 |
| src/include/nodes/bitmapset.h | modified | +2 −0 |
| src/include/utils/hsearch.h | modified | +0 −2 |
Discussion
- allow frontend use of the backend's core hashing functions 11 messages · 2020-02-07 → 2020-02-27