-
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: add composite types to pg_class and pg_attribute
Previously, user-defined composite types were not populated in 2 of `pg_catalog`'s tables: `pg_class` and `pg_attribute` (where the former's row entries pertain to the type and the latter's pertain to the "columns" of the type). This patch addresses this PostgreSQL-incompatible behavior by populating such tables with user-defined composite types. This patch also ensures that the `typrelid` column in the `pg_type` table has the proper oid for composite types. Epic: none Fixes: #109675 Release note (sql change): `pg_catalog`'s `pg_class` and `pg_attribute` tables now have context of user-defined composite types (in accordance with PostgreSQL's corresponding `pg_catalog` tables). In addition, the `typrelid` column in the `pg_type` table has the proper oid for composite types.
- Loading branch information
Showing
3 changed files
with
369 additions
and
63 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
Oops, something went wrong.