-
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.
40234: storage: test atomic replication changes r=nvanbenschoten a=tbg This PR adds a number of tests that focus on the interaction between the various queues and joint configurations. We don't flip the switch yet since adding/removing only learners does not work yet via the joint path. This isn't something we need per se, but it's an annoying restriction to keep in mind and work around if it does happen. Tracked in #12768 (comment). 40267: tree: make int::regtype::text O(1) r=jordanlewis a=jordanlewis Previously, casting an integer to a regtype and then text (which turns a type OID into the string of its corresponding type) would run a select over pg_type to figure out the answer, which under the hood materializes all of the types into a table and filters, an O(n) operation. This is silly because we already have a static lookup table for this info. Use it. This commonly shows up in visualization tools as O(n^2), since people tend to run one of these casts once per type. So this improves metadata query performance significantly. Release note: None Co-authored-by: Tobias Schottdorf <[email protected]> Co-authored-by: Jordan Lewis <[email protected]>
- Loading branch information
Showing
12 changed files
with
544 additions
and
202 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
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.