pgsql: Move bitmap_hash and bitmap_match to bitmapset.c.

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Move bitmap_hash and bitmap_match to bitmapset.c.
Date: 2020-02-24 11:51:58
Message-ID: E1j6CHG-0000Qs-4V@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/07b95c3d8334f737d4717c91967729f7721e785c

Modified Files
--------------
src/backend/nodes/bitmapset.c | 23 +++++++++++++++++++++++
src/backend/utils/hash/hashfn.c | 24 ------------------------
src/include/nodes/bitmapset.h | 2 ++
src/include/utils/hsearch.h | 2 --
4 files changed, 25 insertions(+), 26 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2020-02-24 11:56:52 pgsql: Put all the prototypes for hashfn.c into the same header file.
Previous Message Michael Paquier 2020-02-24 09:15:17 pgsql: Add prefix checks in exclude lists for pg_rewind, pg_checksums a