citus/src/backend/distributed/worker
SaitTalhaNisanci b4d62c0613 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-24 17:18:28 +03:00
..
task_tracker.c Replace foreach with foreach_ptr/foreach_oid (#3544) 2020-02-27 16:54:49 +01:00
task_tracker_protocol.c Verify trigger relation before reading old/new tuples 2020-04-07 15:39:31 +00:00
worker_create_or_replace.c Semmle: Check for NULL in some places where it might occur (#3509) 2020-02-27 10:45:29 +01:00
worker_data_fetch_protocol.c Replace foreach with foreach_ptr/foreach_oid (#3544) 2020-02-27 16:54:49 +01:00
worker_drop_protocol.c Replace foreach with foreach_ptr/foreach_oid (#3544) 2020-02-27 16:54:49 +01:00
worker_file_access_protocol.c Replace foreach with foreach_ptr/foreach_oid (#3544) 2020-02-27 16:54:49 +01:00
worker_merge_protocol.c use macros for pg versions instead of hardcoded values (#3694) 2020-04-01 17:01:52 +03:00
worker_partition_protocol.c Fix int32 overflow and use PG macros for INT32_XX (#4061) 2020-07-24 17:18:28 +03:00
worker_shard_visibility.c refactor around local group id checks 2020-03-05 20:20:41 +03:00
worker_sql_task_protocol.c Implement partitioned intermediate results. 2019-12-24 03:53:39 -08:00
worker_truncate_trigger_protocol.c fix some typos 2020-03-25 11:01:26 +03:00