From: Teodor Sigaev <teodor@sigaev.ru>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Make bms_prev_member work correctly with a 64 bit bitmapword
Date: Mon, 23 Apr 2018 14:59:53 +0000
Message-ID: <E1fAcwb-0003eQ-8B@gemulon.postgresql.org> (raw)
Make bms_prev_member work correctly with a 64 bit bitmapword
5c067521 erroneously had coded bms_prev_member assuming that a bitmapword
would always hold 32 bits and started it's search on what it thought was the
highest 8-bits of the word. This was not the case if bitmapwords were 64
bits.
In passing add a test to exercise this function a little. Previously there was
no coverage at all.
David Rowly
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/a5ab8928d7d9e2cf76ed0590efbd9795ea9e5b5e
Modified Files
--------------
src/backend/nodes/bitmapset.c | 2 +-
src/test/regress/expected/partition_prune.out | 23 +++++++++++++++++++++++
src/test/regress/sql/partition_prune.sql | 25 +++++++++++++++++++++++++
3 files changed, 49 insertions(+), 1 deletion(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: teodor@sigaev.ru
Subject: Re: pgsql: Make bms_prev_member work correctly with a 64 bit bitmapword
In-Reply-To: <E1fAcwb-0003eQ-8B@gemulon.postgresql.org>
References: <E1fAcwb-0003eQ-8B@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox