From 2169da72da7e8bd382ae85f508279481d5496cd4 Mon Sep 17 00:00:00 2001 From: lilongfei Date: Thu, 2 Nov 2023 07:36:37 +0000 Subject: [PATCH] =?UTF-8?q?update=20src/gausskernel/optimizer/plan/createp?= =?UTF-8?q?lan.cpp.=20=E6=9B=B4=E6=94=B9checkBitmapScanQualExists=E5=87=BD?= =?UTF-8?q?=E6=95=B0=E5=91=BD=E5=90=8D=E9=A3=8E=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: lilongfei --- src/gausskernel/optimizer/plan/createplan.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gausskernel/optimizer/plan/createplan.cpp b/src/gausskernel/optimizer/plan/createplan.cpp index 6f46ef5fd..44a85487f 100755 --- a/src/gausskernel/optimizer/plan/createplan.cpp +++ b/src/gausskernel/optimizer/plan/createplan.cpp @@ -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 */