pgsql: Avoid integer wraparound when adding new HASH partition

Поиск
Список
Период
Сортировка
Искать

pgsql: Avoid integer wraparound when adding new HASH partition

От:
David Rowley <drowley@postgresql.org>
Дата:
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 
Author: David Rowley 
Discussion: https://postgr.es/m/19836-0754d466a59c7d00@postgresql.org
Backpatch-through: 15

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/9f191dce61ebf0ae77bf251b6383915859d7520b

Modified Files
--------------
src/backend/partitioning/partbounds.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

FAQ