未验证 提交 ad80a1a7 编写于 作者: H Hans Zeller 提交者: GitHub

Fix perfsummary.py script to recognize new optimizer name in EXPLAIN (#8152)

This tool looks at EXPLAIN plans and recognizes the line with the
optimizer version. Recently, we added the string "(GPORCA)" to the
optimizer name.

The fix is to add parentheses to the characters we ignore in this line.
上级 59b437e0
......@@ -192,8 +192,8 @@ class FileState:
if myLineNoRows == baseLineNoRows:
rows_change_found = True
else:
myOptimizer = re.sub(r'Optimizer[ a-z]*:[ a-zA-Z0-9.]*', 'Optimizer:xxx', myLine)
baseOptimizer = re.sub(r'Optimizer[ a-z]*:[ a-zA-Z0-9.]*', 'Optimizer:xxx', baseLine)
myOptimizer = re.sub(r'Optimizer[ a-z]*:.*', 'Optimizer:xxx', myLine)
baseOptimizer = re.sub(r'Optimizer[ a-z]*:.*', 'Optimizer:xxx', baseLine)
if myOptimizer != baseOptimizer:
# lines are different even with masked-out rows and cost
plan_change_found = True
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册