update src/gausskernel/optimizer/plan/createplan.cpp.

更改checkBitmapScanQualExists函数命名风格

Signed-off-by: lilongfei <lilongfei1010@139.com>
This commit is contained in:
lilongfei
2023-11-02 07:36:37 +00:00
committed by Gitee
parent b57e248915
commit 2169da72da

View File

@ -2668,7 +2668,7 @@ static Scan* create_indexscan_plan(
return scan_plan;
}
static bool checkBitmapScanQualExists(PlannerInfo *root, List *indexquals, Node *clause)
static bool CheckBitmapScanQualExists(PlannerInfo *root, List *indexquals, Node *clause)
{
foreach_cell (cell, indexquals) {
Node *node = lfirst_node(Node, cell);
@ -2681,7 +2681,7 @@ static bool checkBitmapScanQualExists(PlannerInfo *root, List *indexquals, Node
if (be->boolop != AND_EXPR) {
continue;
}
if (checkBitmapScanQualExists(root, be->args, clause)) {
if (CheckBitmapScanQualExists(root, be->args, clause)) {
return true;
}
}
@ -2750,7 +2750,7 @@ static BitmapHeapScan* create_bitmap_scan_plan(
Assert(IsA(rinfo, RestrictInfo));
if (rinfo->pseudoconstant)
continue; /* we may drop pseudoconstants here */
if (checkBitmapScanQualExists(root, indexquals, clause))
if (CheckBitmapScanQualExists(root, indexquals, clause))
continue; /* simple duplicate */
if (rinfo->parent_ec && list_member_ptr(indexECs, rinfo->parent_ec))
continue; /* derived from same EquivalenceClass */