Re: Add bms_offset_members() function for bitshifting Bitmapsets

Поиск
Список
Период
Сортировка
Искать
От
David Rowley
Тема
Re: Add bms_offset_members() function for bitshifting Bitmapsets
Дата
в 16:20:43
Msg-id
CAApHDvphYj=Xps7AkQ90xxVwaLr+MYYrSaUFrrvXarE82Rpy2A@mail.gmail.com
Ответ на
Список
Дерево обсуждения
Add bms_offset_members() function for bitshifting Bitmapsets David Rowley <dgrowleyml@gmail.com>
Re: Add bms_offset_members() function for bitshifting Bitmapsets Chao Li <li.evan.chao@gmail.com>
Re: Add bms_offset_members() function for bitshifting Bitmapsets David Rowley <dgrowleyml@gmail.com>
Re: Add bms_offset_members() function for bitshifting Bitmapsets Tom Lane <tgl@sss.pgh.pa.us>
Re: Add bms_offset_members() function for bitshifting Bitmapsets David Rowley <dgrowleyml@gmail.com>
Re: Add bms_offset_members() function for bitshifting Bitmapsets Tom Lane <tgl@sss.pgh.pa.us>
Re: Add bms_offset_members() function for bitshifting Bitmapsets David Rowley <dgrowleyml@gmail.com>
Re: Add bms_offset_members() function for bitshifting Bitmapsets David Rowley <dgrowleyml@gmail.com>
Re: Add bms_offset_members() function for bitshifting Bitmapsets "Greg Burd" <greg@burd.me>
Re: Add bms_offset_members() function for bitshifting Bitmapsets David Rowley <dgrowleyml@gmail.com>
Re: Add bms_offset_members() function for bitshifting Bitmapsets "Greg Burd" <greg@burd.me>
Re: Add bms_offset_members() function for bitshifting Bitmapsets David Rowley <dgrowleyml@gmail.com>
Re: Add bms_offset_members() function for bitshifting Bitmapsets David Rowley <dgrowleyml@gmail.com>
Re: Add bms_offset_members() function for bitshifting Bitmapsets Peter Eisentraut <peter@eisentraut.org>
Re: Add bms_offset_members() function for bitshifting Bitmapsets David Rowley <dgrowleyml@gmail.com>
Re: Add bms_offset_members() function for bitshifting Bitmapsets Tom Lane <tgl@sss.pgh.pa.us>
On Tue, 21 Apr 2026 at 13:40, David Rowley  wrote:
> Not at this stage. The v1 patch did modify the set in-place, so the
> code is there if we ever need it. I didn't find any need for it in our
> current code. The selective tuple deforming patch I'm working on could
> use it, but I doubt it's worth the trouble for 1 caller. It's just for
> something that happens during create_plan(), so 1 more allocation in
> that code likely isn't going to be noticed.

After some small adjustments to some comments and reducing the number
of iterations in test_random_offset_operations(), I pushed the patch.

The 10000 iterations were pushing the test time to about 91ms, which
seemed like quite a big jump from the ~28ms that it was taking on my
machine.  With 1000, it takes 36ms, which seems like a more reasonable
increase.

Thank you all for the reviews and feedback.

David


В списке pgsql-hackers по дате отправления
От: Pavel Stehule
Дата:
От: Ashutosh Bapat
Дата:
FAQ