cockroachdb / cockroachdb/cockroach

sql: add optional message to CANCEL commands

Open
#127,490 2 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.