Re: Use pg_nextpower2_* in a few more places - Mailing list pgsql-hackers

From David Rowley
Subject Re: Use pg_nextpower2_* in a few more places
Date
Msg-id CAApHDvo2wieSC0CnUzjC1MkwOmd1sUm8Mxp-Jz8F4C2CXfsy6g@mail.gmail.com
Whole thread Raw
In response to Use pg_nextpower2_* in a few more places  (David Rowley <dgrowleyml@gmail.com>)
List pgsql-hackers
On Sun, 13 Jun 2021 at 00:31, David Rowley <dgrowleyml@gmail.com> wrote:
>
> Back in f0705bb62, we added pg_nextpower2_32 and pg_nextpower2_64 to
> efficiently obtain the next power of 2 of a given number using an
> intrinsic function to find the left-most 1 bit.
>
> In d025cf88b and 02a2e8b44, I added some usages of these new functions
> but I didn't quite get all of them done.   The attached replaces all
> of the remaining ones that I'm happy enough to go near.

> I'd like to fix these for PG15.

I had another look over this patch and it looks ok to me. I plan to
push it in the next day or so.

David



pgsql-hackers by date:

Previous
From: Fujii Masao
Date:
Subject: Re: postgres_fdw - should we tighten up batch_size, fetch_size options against non-numeric values?
Next
From: Andrey Borodin
Date:
Subject: Re: Synchronous commit behavior during network outage