Move bitmap_hash and bitmap_match to bitmapset.c.

Robert Haas <rhaas@postgresql.org>

Commit: 07b95c3d8334f737d4717c91967729f7721e785c
Author: Robert Haas <rhaas@postgresql.org>
Date: 2020-02-24T11:47:43Z
Releases: 13.0
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

PathChange+/−
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