citus/src/backend/distributed/planner
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
..
cte_inline.c Update regression tests-2 2020-01-16 12:28:15 +01:00
deparse_shard_query.c Refactor CitusBeginScan into separate DML / SELECT paths 2020-03-05 13:04:39 +01:00
distributed_planner.c Semmle: Check for NULL in some places where it might occur (#3509) 2020-03-25 09:19:15 +01:00
extended_op_node_utils.c pullUpIntermediateRows should not be true when groupedByDisjointPartitionColumn is true 2020-01-30 21:18:08 +00:00
fast_path_router_planner.c Semmle: Check for NULL in some places where it might occur (#3509) 2020-03-25 09:19:15 +01:00
function_call_delegation.c Lazy query deparsing executable queries (#3350) 2020-01-17 11:49:43 +01:00
insert_select_planner.c Don't use distributed insert/select for repartitioned joins 2020-02-03 13:13:30 -08:00
intermediate_result_pruning.c Fix early exit bug on intermediate result pruning 2020-03-05 16:47:58 +03:00
multi_explain.c CurrentDatabaseName: return const char* as we're borrowing from cache 2020-01-23 22:49:35 +00:00
multi_join_order.c Semmle: Check for NULL in some places where it might occur (#3509) 2020-03-25 09:19:15 +01:00
multi_logical_optimizer.c Feature: tdigest aggregate (#3897) 2020-06-17 14:31:37 +02:00
multi_logical_planner.c 9.2: First phase of addressing HAVING subquery issues (#3599) 2020-03-25 10:19:18 +01:00
multi_master_planner.c Implement pulling up rows to coordinator when aggregates cannot be pushed down. Enabled by default 2020-01-07 01:16:04 +00:00
multi_physical_planner.c Fix int32 overflow and use PG macros for INT32_XX (#4061) 2020-07-27 11:59:33 +03:00
multi_router_planner.c Semmle: Check for NULL in some places where it might occur (#3509) 2020-03-25 09:19:15 +01:00
planner_readme.md Strip trailing whitespace and add final newline (#3186) 2019-11-21 14:25:37 +01:00
postgres_planning_functions.c Automatically convert useless declarations using regex replace (#3181) 2019-11-21 13:47:29 +01:00
query_colocation_checker.c Automatically convert useless declarations using regex replace (#3181) 2019-11-21 13:47:29 +01:00
query_pushdown_planning.c Improve definition of RelationInfoContainsOnlyRecurringTuples 2020-03-09 17:29:13 +01:00
recursive_planning.c 9.2: First phase of addressing HAVING subquery issues (#3599) 2020-03-25 10:19:18 +01:00
relation_restriction_equivalence.c Semmle: Check for NULL in some places where it might occur (#3509) 2020-03-25 09:19:15 +01:00
shard_pruning.c Really ignore -Wgnu-variable-sized-type-not-at-end (#3627) 2020-03-25 09:23:09 +01:00
tdigest_extension.c Feature: tdigest aggregate (#3897) 2020-06-17 14:31:37 +02:00