citus/src
SaitTalhaNisanci 39e63f5a08 Fix int32 overflow and use PG macros for INT32_XX (#4061)
* Use CalculateUniformHashRangeIndex in HashPartitionId

INT32_MIN definition can change among different platforms hence it is
possible to get overflow, we would see crashes because of this in debian
distros. We have already solved a similar problem with introducing
CalculateUniformHashRangeIndex method, hence to solve it we can use the
same method, this also removes some duplication and has a single place
to decide that.

* Use PG_INT32_XX instead of INT32_XX to be safer

(cherry picked from commit ef841115de)
2020-07-27 10:32:08 +03:00
..
backend Fix int32 overflow and use PG macros for INT32_XX (#4061) 2020-07-27 10:32:08 +03:00
include Fix int32 overflow and use PG macros for INT32_XX (#4061) 2020-07-27 10:32:08 +03:00
test Fixes the non existing table bug (#4058) 2020-07-27 10:32:08 +03:00