-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
52377: sql: add a new optional secondary logger for internal slow queries r=solongordon a=arulajmani Previously, all slow queries were logged to the slow query log, regardless of whether they were internal or from the user. This made it easy for user queries to get lost in the log. This patch adds an optional cluster setting, `sql.log.slow_query.internal`. When set to true, all internal queries that have service latency above the slow query log threshold will be logged to `cockroach-slow-log-internal-only.log` instead of `cockroach-slow-log.log`. This new setting is a no-op if the slow query log hasn't been turned on, i.e there is no latency threshold set. Closes #50201 Release note (sql change): adds a new cluster setting `sql.log.slow_query.internal` which when turned on in conjunction with the slow query log causes internal queries to be logged to an internal query only slow query log instead of the main slow query log. 53029: Makefile: misc spacing adjustment for cleaner build output r=irfansharif a=irfansharif Scratching a tiny itch. Before: ``` docgen http \ --protoc ... --gendoc ... --out ... --protobuf ... ``` After: ``` docgen http \ --protoc ... --gendoc ... --out ... --protobuf ... ``` Release note: None Co-authored-by: arulajmani <arulajmani@gmail.com> Co-authored-by: irfan sharif <irfanmahmoudsharif@gmail.com>
- Loading branch information
Showing
5 changed files
with
53 additions
and
26 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
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