citus/src/backend/distributed
SaitTalhaNisanci c6c31e0f1f 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)

 Conflicts:
	src/backend/distributed/commands/multi_copy.c
2020-07-27 11:59:33 +03:00
..
commands Fixes the non existing table bug (#4058) 2020-07-27 11:40:37 +03:00
connection Mark all connections for shutdown when citus.node_conninfo chan… (#3642) 2020-03-25 09:24:30 +01:00
deparser force aliases in deparsing for queries with anonymous column references (#4011) 2020-07-13 18:32:05 +02:00
executor Semmle: Ensure stack memory is not leaked through uninitialized… (#3561) 2020-03-25 09:20:22 +01:00
master Fix int32 overflow and use PG macros for INT32_XX (#4061) 2020-07-27 11:59:33 +03:00
metadata Fix int32 overflow and use PG macros for INT32_XX (#4061) 2020-07-27 11:59:33 +03:00
planner Fix int32 overflow and use PG macros for INT32_XX (#4061) 2020-07-27 11:59:33 +03:00
progress Automatically convert useless declarations using regex replace (#3181) 2019-11-21 13:47:29 +01:00
relay Convert unsafe APIs to safe ones 2020-03-25 09:16:31 +01:00
sql Downgrade from 9.3-1 to 9.2-4 AND upgrade from 9.2-2 to 9.2-4 (#3673) 2020-03-31 09:18:25 +02:00
test Fix int32 overflow and use PG macros for INT32_XX (#4061) 2020-07-27 11:59:33 +03:00
transaction Fix Subtransaction memory leak 2020-07-10 11:03:29 +03:00
utils Fix int32 overflow and use PG macros for INT32_XX (#4061) 2020-07-27 11:59:33 +03:00
worker Fix int32 overflow and use PG macros for INT32_XX (#4061) 2020-07-27 11:59:33 +03:00
.gitignore Change SQL migration build process for easier reviews (#2951) 2019-09-13 18:44:27 +02:00
Makefile Compile safestringlib using regular configure 2020-03-25 09:22:33 +01:00
citus.control Downgrade from 9.3-1 to 9.2-4 AND upgrade from 9.2-2 to 9.2-4 (#3673) 2020-03-31 09:18:25 +02:00
safeclib Compile safestringlib using regular configure 2020-03-25 09:22:33 +01:00
shared_library_init.c Mark all connections for shutdown when citus.node_conninfo chan… (#3642) 2020-03-25 09:24:30 +01:00