-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
25157: sql: simplify+generalize control statements r=knz a=knz The following statements gain the ability to operate on multiple entries at once: - `CANCEL SESSIONS` - `CANCEL QUERIES` - `CANCEL JOBS` - `RESUME JOBS` - `PAUSE JOBS` See individual commits for details. Fixes #22907. cc @cockroachdb/sql Co-authored-by: Raphael 'kena' Poss <[email protected]>
- Loading branch information
Showing
23 changed files
with
681 additions
and
373 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
cancel_query_stmt ::= | ||
cancel_queries_stmt ::= | ||
'CANCEL' 'QUERY' query_id | ||
| 'CANCEL' 'QUERY' 'IF' 'EXISTS' query_id | ||
| 'CANCEL' 'QUERIES' select_stmt | ||
| 'CANCEL' 'QUERIES' 'IF' 'EXISTS' select_stmt |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
cancel_sessions_stmt ::= | ||
'CANCEL' 'SESSION' session_id | ||
| 'CANCEL' 'SESSION' 'IF' 'EXISTS' session_id | ||
| 'CANCEL' 'SESSIONS' select_stmt | ||
| 'CANCEL' 'SESSIONS' 'IF' 'EXISTS' select_stmt |
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
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.