forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sql: record error code for failed executions to execution insights
tables Part of: cockroachdb#87785. Previously, the error codes for failed executions were not written to the execution insights tables. This commit adds an `error_code` column to the `crdb_internal.[cluster|node]_execution_insights` virtual tables to keep track of the error code for a failed stmt execution. This commit also adds a also adds a `last_error_code` column to to the `crdb_internal.[cluster|node_txn_execution_insights` virtual tables to keep track of the error code for the last failed statement for that transaction. Release note (sql change): Adds `error_code` column to the `crdb_internal.[cluster|node]_execution_insights` virtual tables, which contains the error code for a failed execution. Adds `last_error_code` column to the `crdb_internal.[cluster|node]_txn_execution_insights` virtual tables, which is the error code of the last failed statement in that transaction.
- Loading branch information
Showing
10 changed files
with
152 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.