cockroachdb / cockroachdb/cockroach
sql: add optional message to CANCEL commands
Open
C-enhancement
E-quick-win
E-starter
T-sql-queries
- Dominant language
- Go
- Stars
- 32.5k
- Forks
- 4.1k
- PR merge metrics
- PR metrics pending
Description
The asynchronous CANCEL commands (`CANCEL QUERY`, `CANCEL SESSION`, etc) don't give much information back to the session that was canceled, just `ERROR: query execution canceled SQLSTATE: 57014`. Sometimes this can make it difficult to figure out who or what is canceling a query. It would be nice to add an optional message to the CANCEL commands that is then passed as part of the error message to the canceled session.
Jira issue: CRDB-40451
Contributor guide
Assessment
This issue has not been assessed yet.