-
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.
sql/catalog: eliminate repeated database descriptor lookups
Previously, one code path of `ResolveExisting` would repeatedly lookup the same database descriptor for each schema in the search path. The `pg_catalog` and `pg_extension` schemas are implicitly included in the search path, so in the common case where the search path is the default value of `"$user", public`, there were four lookups for the same database descriptor. This commit performs the database descriptor lookup once and reuses it for looking up objects in each schema of the search path. Release note: None
- Loading branch information
Showing
3 changed files
with
27 additions
and
24 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