On Wed, Dec 04, 2024 at 02:05:10PM -0800, James Hunter wrote:
> So, I think your patch should be, instead, to cast either "totalpages"
> or "10" to "int64", in the return statement.

totalpages is signed, and BlockNumber is unsigned.  Hence in theory
you could always fall into a trap once totalpages gets higher than
(2^31 - 1), no?  This is not going to be a problem in practice even if
the number of pages per range assigned to brin can be 1, still..
--
Michael

Attachment: signature.asc
Description: PGP signature

Reply via email to