pgsql: postgres: Use pg_{add,mul}_size_overflow()

From: Jacob Champion <jchampion(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: postgres: Use pg_{add,mul}_size_overflow()
Date: 2025-11-24 20:24:28
Message-ID: E1vNd6p-001E3U-26@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

postgres: Use pg_{add,mul}_size_overflow()

The backend implementations of add_size() and mul_size() can now make
use of the APIs provided in common/int.h.

Reviewed-by: Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com>
Reviewed-by: Michael Paquier <michael(at)paquier(dot)xyz>
Discussion: https://postgr.es/m/CAOYmi%2B%3D%2BpqUd2MUitvgW1pAJuXgG_TKCVc3_Ek7pe8z9nkf%2BAg%40mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/e2ceff13d83a85c634dc358b8291c7ae301e95e1

Modified Files
--------------
src/backend/storage/ipc/shmem.c | 11 +++--------
1 file changed, 3 insertions(+), 8 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2025-11-24 21:02:18 Re: pgsql: Teach DSM registry to ERROR if attaching to an uninitialized ent
Previous Message Nathan Bossart 2025-11-24 19:03:06 Re: pgsql: Teach DSM registry to ERROR if attaching to an uninitialized ent