-
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.
97808: sql: make COPY TO/FROM respect timeouts and cancellation, and appear in SHOW QUERIES r=otan a=rafiss informs #94194 ### sql: use conn executor state machine for COPY FROM Using the conn executor state machine allows a lot of bespoke logic to be removed. (If we were to remove the copy_from_atomic_enabled setting and make it always true, we could remove even more custom logic.) This then makes it easy to hook up to cancellation and introspection. Release note (bug fix): The COPY FROM command now respects the statement_timeout and transaction_timeout settings. Release note (bug fix): The COPY FROM command now appears in the results of SHOW QUERIES. --- ### sql: make stmt/txn timeout apply to COPY TO This commit simplifies the conn executor state transitions a bit, and adds in timers for stmt/txn timeouts analogously to how they were for COPY FROM. No release note since COPY TO is new. Co-authored-by: Rafi Shamim <[email protected]>
- Loading branch information
Showing
8 changed files
with
638 additions
and
186 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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 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.