Re: BRIN: Prevent the heapblk overflow during index summarization on very large tables resulting in an infinite loop

Michael Paquier <michael@paquier.xyz>

From: Michael Paquier <michael@paquier.xyz>
To: David Rowley <dgrowleyml@gmail.com>
Cc: sunil s <sunilfeb26@gmail.com>, pgsql-hackers@lists.postgresql.org
Date: 2025-10-21T05:53:33Z
Lists: pgsql-hackers

Commits

Same data as JSON: GET /api/v1/messages/:b64id/commits the thread's linked commits as JSON, with link sources. API reference →
  1. Fix BRIN 32-bit counter wrap issue with huge tables

  2. Fix integer overflow bug in GiST buffering build calculations.

On Tue, Oct 21, 2025 at 06:32:01PM +1300, David Rowley wrote:
> I'd leave it as uint64. There's no reason to mixup the signedness
> between these two variables.

That's fine as well.

> I'm happy to finish this one off. I was leaving it for Tomas to
> comment, but I think he'll be busy with pgconf.eu for the next few
> days.

Cool, thanks.  I'm leaving that stuff up to any of you, have fun.
FWIW, I am on the same line as you.  Your suggestions are better than
what the proposed patch does, as far as I've looked.
--
Michael