Avoid integer wraparound when adding new HASH partition Specifying an overly large modulus could result in an integer wraparound while checking for overlapping partitions when adding a new HASH partition. Upgrade to 64-bit integers to avoid this.
Bug: #19836 Reported-by: Sumedh Pathak <[email protected]> Author: David Rowley <[email protected]> Discussion: https://postgr.es/m/[email protected] Backpatch-through: 15 Branch ------ REL_17_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/61afc2ecdbe7e51e94ebaacb6803b4e22f00eb76 Modified Files -------------- src/backend/partitioning/partbounds.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
