Re: Fix an incorrect assertion condition in mdwritev(). - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: Fix an incorrect assertion condition in mdwritev().
Date
Msg-id Zl_lQQVprXdvhrZH@paquier.xyz
Whole thread Raw
In response to Re: Fix an incorrect assertion condition in mdwritev().  (Andres Freund <andres@anarazel.de>)
List pgsql-hackers
On Mon, Jun 03, 2024 at 03:24:07PM -0700, Andres Freund wrote:
> I'm confused - isn't using common/int.h entirely sufficient for that? Nearly
> all architectures have more efficient ways to check for 64bit overflows than
> doing actual 128 bit math.

One simple way to change the assertion would be something like that, I
assume.  Andres, does it answer your concerns?
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Amit Kapila
Date:
Subject: Re: Logical Replication of sequences
Next
From: Kyotaro Horiguchi
Date:
Subject: Re: Fix use of possible uninitialized variable retval (src/pl/plpgsql/src/pl_handler.c)