sql: fix stmtTraceThreshold
for pausable portals
#99404
Labels
A-pausable-portals
Issues related to multiple active portals
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
T-sql-foundations
SQL Foundations Team (formerly SQL Schema + SQL Sessions)
Since a pausable portal can be re-executed by re-calling
connExecutor.ExecStmtInOpenState()
, we should better record the trace threshold for all executions.cockroach/pkg/sql/conn_executor_exec.go
Line 726 in d8ea15c
Specifically, now each re-execution will get a fresh budget and we won't include details about the previous executions, only about the last one.
Jira issue: CRDB-25867
Epic CRDB-25183
The text was updated successfully, but these errors were encountered: