postgres: Use pg_{add,mul}_size_overflow()
authorJacob Champion <jchampion@postgresql.org>
Mon, 24 Nov 2025 17:59:54 +0000 (09:59 -0800)
committerJacob Champion <jchampion@postgresql.org>
Mon, 24 Nov 2025 17:59:54 +0000 (09:59 -0800)
commite2ceff13d83a85c634dc358b8291c7ae301e95e1
tree183260e85acc957ef29398b36d9230d4158ed2ff
parent8934f2136cd82333fd148954a13a8ab01f7bd7ef
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.evan.chao@gmail.com>
Reviewed-by: Michael Paquier <michael@paquier.xyz>
Discussion: https://postgr.es/m/CAOYmi%2B%3D%2BpqUd2MUitvgW1pAJuXgG_TKCVc3_Ek7pe8z9nkf%2BAg%40mail.gmail.com
src/backend/storage/ipc/shmem.c