Due to a fix in VMware Tanzu Greenplum 6.5.0 and above, there can be a performance degradation for some queries with a Query Optimizer. The following is a detailed description of why this happens:
In other words, queries using dynamic partition elimination (DPE) with range predicates are running slow. This issue has been fixed by allowing only equality comparisons with DPE.
Product Version: 6.13
This behavior can be reversed by upgrading to GPDB 6.13.0 or higher and setting optimizer_enable_range_predicate_dpe to on with the following command:
gpconfig -c optimizer_enable_range_predicate_dpe -v on --skipvalidation gpstop -u