提交 4ff5b9f1 编写于 作者: A Ashuka Xue 提交者: Shreedhar Hardikar

Add optimizer_enable_range_predicate_dpe GUC

This commit adds a GUC needed to enable/disable ORCA traceflag
introduced in ORCA commit : "Allow only equality comparisons for
Dynamic Partition Elimination"
上级 f78c920c
......@@ -17,5 +17,5 @@ params:
BLD_TARGETS:
OUTPUT_ARTIFACT_DIR: gpdb_artifacts
CONFIGURE_FLAGS:
ORCA_TAG: v3.93.0
ORCA_TAG: v3.94.0
RC_BUILD_TYPE_GCS:
......@@ -40,10 +40,10 @@ AC_RUN_IFELSE([AC_LANG_PROGRAM([[
#include <string.h>
]],
[
return strncmp("3.93.", GPORCA_VERSION_STRING, 5);
return strncmp("3.94.", GPORCA_VERSION_STRING, 5);
])],
[AC_MSG_RESULT([[ok]])],
[AC_MSG_ERROR([Your ORCA version is expected to be 3.93.XXX])]
[AC_MSG_ERROR([Your ORCA version is expected to be 3.94.XXX])]
)
AC_LANG_POP([C++])
])# PGAC_CHECK_ORCA_VERSION
......
......@@ -14479,7 +14479,7 @@ int
main ()
{
return strncmp("3.93.", GPORCA_VERSION_STRING, 5);
return strncmp("3.94.", GPORCA_VERSION_STRING, 5);
;
return 0;
......@@ -14489,7 +14489,7 @@ if ac_fn_cxx_try_run "$LINENO"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
$as_echo "ok" >&6; }
else
as_fn_error $? "Your ORCA version is expected to be 3.93.XXX" "$LINENO" 5
as_fn_error $? "Your ORCA version is expected to be 3.94.XXX" "$LINENO" 5
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
......
[requires]
orca/v3.93.0@gpdb/stable
orca/v3.94.0@gpdb/stable
[imports]
include, * -> build/include
......
......@@ -401,6 +401,12 @@ CConfigParamMapping::SConfigMappingElem CConfigParamMapping::m_elements[] =
&optimizer_prune_unused_columns,
true, // m_negate_param
GPOS_WSZ_LIT("Prune unused columns from the query.")
},
{
EopttraceAllowGeneralPredicatesforDPE,
&optimizer_enable_range_predicate_dpe,
false, // m_negate_param
GPOS_WSZ_LIT("Enable range predicates for dynamic partition elimination.")
}
};
......
......@@ -387,6 +387,7 @@ bool optimizer_cte_inlining;
bool optimizer_enable_space_pruning;
bool optimizer_enable_associativity;
bool optimizer_enable_eageragg;
bool optimizer_enable_range_predicate_dpe;
/* Analyze related GUCs for Optimizer */
bool optimizer_analyze_root_partition;
......@@ -2855,6 +2856,16 @@ struct config_bool ConfigureNamesBool_gp[] =
NULL, NULL, NULL
},
{
{"optimizer_enable_range_predicate_dpe", PGC_USERSET, DEVELOPER_OPTIONS,
gettext_noop("Enable range predicates for dynamic partition elimination."),
NULL,
GUC_NO_SHOW_ALL | GUC_NOT_IN_SAMPLE
},
&optimizer_enable_range_predicate_dpe,
false,
NULL, NULL, NULL
},
/* End-of-list marker */
{
{NULL, 0, 0, NULL, NULL}, NULL, false, NULL, NULL
......
......@@ -562,6 +562,7 @@ extern bool optimizer_array_constraints;
extern bool optimizer_cte_inlining;
extern bool optimizer_enable_space_pruning;
extern bool optimizer_enable_associativity;
extern bool optimizer_enable_range_predicate_dpe;
/* Analyze related GUCs for Optimizer */
extern bool optimizer_analyze_root_partition;
......
......@@ -372,6 +372,7 @@
"optimizer_enable_partial_index",
"optimizer_enable_partition_propagation",
"optimizer_enable_partition_selection",
"optimizer_enable_range_predicate_dpe",
"optimizer_enable_sort",
"optimizer_enable_space_pruning",
"optimizer_enable_streaming_material",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册