-
Notifications
You must be signed in to change notification settings - Fork 4.1k
sql: support pgwire query cancellation #41335
Copy link
Copy link
Closed
Labels
A-sql-pgcompatSemantic compatibility with PostgreSQLSemantic compatibility with PostgreSQLA-sql-pgwirepgwire protocol issues.pgwire protocol issues.C-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)T-sql-foundationsSQL Foundations Team (formerly SQL Schema + SQL Sessions)SQL Foundations Team (formerly SQL Schema + SQL Sessions)
Metadata
Metadata
Assignees
Labels
A-sql-pgcompatSemantic compatibility with PostgreSQLSemantic compatibility with PostgreSQLA-sql-pgwirepgwire protocol issues.pgwire protocol issues.C-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)T-sql-foundationsSQL Foundations Team (formerly SQL Schema + SQL Sessions)SQL Foundations Team (formerly SQL Schema + SQL Sessions)
Postgres docs describe how
BackendKeyDatais initialized by the DB on startup and sent to the client so it can be used for cancellation requests later.https://www.postgresql.org/docs/12/protocol-flow.html
CockroachDB has a separate cancel query syntax. For increased compatibility, we should support the Postgres version too.
There have been other attempts at doing this in the past, but they had some issues.
See #13009 #13191 #17003 #34520
Epic CRDB-7644