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

From David Rowley
Subject Re: Add bms_offset_members() function for bitshifting Bitmapsets
Date
Msg-id CAApHDvqJ_ZpO366cGMS2uheTzy0Kh8Qgk2hx+unfyKy1ifR6xw@mail.gmail.com
Whole thread
In response to Re: Add bms_offset_members() function for bitshifting Bitmapsets  (Peter Eisentraut <peter@eisentraut.org>)
Responses Re: Add bms_offset_members() function for bitshifting Bitmapsets
List pgsql-hackers
On Thu, 16 Apr 2026 at 07:17, Peter Eisentraut <peter@eisentraut.org> wrote:
> Depending on what you end up doing, maybe a sprinkling of pg_nodiscard
> could be appropriate.

Yeah maybe. It wouldn't do any harm, at least.

I didn't do that in the patch I just sent as it felt like something we
should do or not do for all the bitmapset functions it's relevant for.
REALLOCATE_BITMAPSETS is meant to give us a stronger guarantee of
people forgetting to do this, as it would cause a breakage if there
were multiple pointers to the same set and only one of them got
updated.

David



pgsql-hackers by date:

Previous
From: David Rowley
Date:
Subject: Re: Add bms_offset_members() function for bitshifting Bitmapsets
Next
From: SATYANARAYANA NARLAPURAM
Date:
Subject: Bug: pg_get_viewdef() fails on GRAPH_TABLE views with lateral column references