!1172 修复guc参数 behavior_compat_options 设置为-1时,statement_history内is_slow_sql字段依然为true问题
Merge pull request !1172 from Li Bingchen/master
This commit is contained in:
@ -370,7 +370,9 @@ static HeapTuple GetStatementTuple(Relation rel, StatementStatContext* statement
|
||||
|
||||
/* is slow sql */
|
||||
values[i++] = BoolGetDatum(
|
||||
(statementInfo->finish_time - statementInfo->start_time >= statementInfo->slow_query_threshold) ? true : false);
|
||||
(statementInfo->finish_time - statementInfo->start_time >= statementInfo->slow_query_threshold &&
|
||||
statementInfo->slow_query_threshold >= 0) ? true : false);
|
||||
|
||||
return heap_form_tuple(RelationGetDescr(rel), values, nulls);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user