-
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.
Browse files
Browse the repository at this point in the history
111401: sql: populate information_schema.user_defined_types and attributes r=annrpom a=annrpom commit 1-4: ### sql: add necessary builtins for information_schema.user_defined_types These patches add the following builtins: - information_schema._pg_char_octet_length: returns the octet length of a given char/varchar/string - pg_encoding_max_length: returns the maximum length of a given encoding. Since we only support UTF8, this will return length 4. - information_schema._pg_datetime_precision: returns the precision of the given datetime-related type - information_schema._pg_interval_type: displays the interval type duration if it is set Needed for: #109603 Epic: none Release note (sql change): The information_schema._pg_char_octet_length, information_schema._pg_datetime_precision, information_schema._pg_interval_type, and pg_encoding_max_length builtin functions are now supported, which improves compatibility with PostgreSQL. --- last commit: ### sql: populate information_schema.user_defined_types and attributes This patch populates information_schema.user_defined_types with information about user defined types and information_schema.attributes with information about the attributes of composite data types. Epic: none Fixes: #109603 Release note (sql change): This patch populates information_schema.user_defined_types with information about user defined types and information_schema.attributes with information about the attributes of composite data types. 113498: obsservice: export StatementInsightsStatistics r=maryliag a=maryliag _commit 1:_ **obsservice: add stmt insights proto and conversion** Add proto definition for Statement Insights to be used on Obs Service. Creates function to copy a `insights.Insight` to the new `obspb.StatementInsightsStatistics` format. For this version, there are some parameters not being set, such as contention. Those will be populated on a following iteration. Epic: none Release note: None ---- _commit 2:_ **obsservice: export StatementInsightsStatistics** This patch hooks into the Flush functionality used by PersistedSQLStats, in preparation for Insights to be sent to external o11y systems. A following PR will do the actual export during the flush. Lastly, it's acknowledged that the transformation required here is likely going to be heavy on allocations. During the prototyping phase however, we leave the optimization and/or restructuring of the exported type for the future. For now, we use a sync.Pool in an effort to reduce allocations/GC. Release note: none 113626: debug: fix help text for `--include-range-info` debug zip flag r=dhartunian a=abarganier Fixes: #112053 This patch fixes the help text for the `--include-range-info` command available in `cockroach debug zip`. This is necessary, because `debug zip` now only creates a single file per node. The help text was not updated to reflect this. Release note: none 113835: team: embed TEAMS.yaml r=RaduBerinde a=RaduBerinde The `internal/team` code looks for `TEAMS.yaml` in the repo. This means that `roachtest` must be run in the tree (and if the branches don't match, obscure errors could happen in principle). This commit moves to embedding the data using `go:embed`. Because `go:embed` doesn't allow embedding of files outside the package, we also have to add a generation rule to copy the file. Fixes: #111661 Release note: None Co-authored-by: Annie Pompa <annie@cockroachlabs.com> Co-authored-by: maryliag <marylia@cockroachlabs.com> Co-authored-by: Alex Barganier <abarganier@cockroachlabs.com> Co-authored-by: Radu Berinde <radu@cockroachlabs.com>
- Loading branch information
Showing
24 changed files
with
894 additions
and
129 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
TEAMS.yaml |
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
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.