Move bitmap_hash and bitmap_match to bitmapset.c.
authorRobert Haas <rhaas@postgresql.org>
Mon, 24 Feb 2020 11:47:08 +0000 (17:17 +0530)
committerRobert Haas <rhaas@postgresql.org>
Mon, 24 Feb 2020 11:47:43 +0000 (17:17 +0530)
commit07b95c3d8334f737d4717c91967729f7721e785c
tree2abfb24ba5536bb20b0ceb9eae54eeb1b1b7bf91
parentbf883b211eae18662f2dfaede02f5d115bf0b805
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
src/backend/nodes/bitmapset.c
src/backend/utils/hash/hashfn.c
src/include/nodes/bitmapset.h
src/include/utils/hsearch.h