-
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.
88009: sql: use schema desc ID for OIDs in pg_catalog r=rafiss a=knz Needed for #87606. Prior to this patch, a synthetic OID was used for "namespace" (schema) references in `pg_catalog`. This was making it difficult/impossible to retrieve schema comments using a non-`root` SQL query, e.g. via ```sql SELECT nspname AS schema, coalesce(pc.comment, sc.comment) as description FROM pg_catalog.pg_namespace t LEFT OUTER JOIN system.comments sc ON t.oid = sc.object_id AND sc.type = 4 LEFT OUTER JOIN crdb_internal.predefined_comments pc ON t.oid = pc.object_id AND pc.type = 4 ``` This patch fixes it. Release note: None Co-authored-by: Raphael 'kena' Poss <[email protected]>
- Loading branch information
Showing
7 changed files
with
121 additions
and
114 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
Oops, something went wrong.