]> granicus.if.org Git - postgresql/commit
Make bms_prev_member work correctly with a 64 bit bitmapword
authorTeodor Sigaev <teodor@sigaev.ru>
Mon, 23 Apr 2018 14:59:17 +0000 (17:59 +0300)
committerTeodor Sigaev <teodor@sigaev.ru>
Mon, 23 Apr 2018 14:59:17 +0000 (17:59 +0300)
commita5ab8928d7d9e2cf76ed0590efbd9795ea9e5b5e
tree5b08c17e1de26da5773d868c62662e72c16e2119
parent9975c128a1d1bd7e7366adf133b21540a2bc2450
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
src/backend/nodes/bitmapset.c
src/test/regress/expected/partition_prune.out
src/test/regress/sql/partition_prune.sql