Re: Add bms_offset_members() function for bitshifting Bitmapsets - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Add bms_offset_members() function for bitshifting Bitmapsets
Date
Msg-id ee61a3c6-5d99-4b3e-87de-4a01eed449b2@eisentraut.org
Whole thread
In response to Re: Add bms_offset_members() function for bitshifting Bitmapsets  (David Rowley <dgrowleyml@gmail.com>)
Responses Re: Add bms_offset_members() function for bitshifting Bitmapsets
List pgsql-hackers
On 15.04.26 04:33, David Rowley wrote:
> On Wed, 15 Apr 2026 at 14:30, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>>
>> David Rowley <dgrowleyml@gmail.com> writes:
>>> I'd not considered surprise-prone as an aspect. I understand we have
>>> bms_join and bms_union, which do the same thing if you only care about
>>> the value of the result and not what happens to the inputs.
>>
>> Sure, but bms_join is an optional optimization of the far safer
>> bms_union operation.  It bothers me to create the optimized case
>> but not the base case.
> 
> Hmm, yeah. That seems like a good argument for making a new set. I'll
> go make it so.

Depending on what you end up doing, maybe a sprinkling of pg_nodiscard 
could be appropriate.




pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Reduce build times of pg_trgm GIN indexes
Next
From: Bruce Momjian
Date:
Subject: Re: First draft of PG 19 release notes