Skip to content

sql: fix stmtTraceThreshold for pausable portals #99404

@ZhouXing19

Description

@ZhouXing19

Since a pausable portal can be re-executed by re-calling connExecutor.ExecStmtInOpenState(), we should better record the trace threshold for all executions.

stmtTraceThreshold := TraceStmtThreshold.Get(&ex.planner.execCfg.Settings.SV)

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-pausable-portalsIssues related to multiple active portalsC-bugCode not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.T-sql-queriesSQL Queries Team

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions