citus/src
Nils Dijk 7973d43ba4 Fix for pruned target list entries (#3818)
DESCRIPTION: Ignore pruned target list entries in coordinator plan

The postgres planner has the ability to prune target list entries that are proven not used in the output relation. When this happens at the `CitusCustomScan` boundary we need to _not_ return these pruned columns to not upset the rest of the planner.

By using the target list the planner asks us to return we fix issues that lead to Assertion failures, and potentially could be runtime errors when they hit in a production build.

Fixes #3809
(cherry picked from commit 105de7beb8)
2020-05-06 15:18:41 +03:00
..
backend Fix for pruned target list entries (#3818) 2020-05-06 15:18:41 +03:00
include Make sure we don't wrap GROUP BY expressions in any_value 2020-05-06 06:26:28 +02:00
test/regress Fix for pruned target list entries (#3818) 2020-05-06 15:18:41 +03:00