-
Notifications
You must be signed in to change notification settings - Fork 4.1k
sql: pg_proc.pronamespace is not populated for built-in functions #94952
Copy link
Copy link
Closed
Labels
A-sql-pgcompatSemantic compatibility with PostgreSQLSemantic compatibility with PostgreSQLC-bugCode not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.T-sql-foundationsSQL Foundations Team (formerly SQL Schema + SQL Sessions)SQL Foundations Team (formerly SQL Schema + SQL Sessions)
Description
Found while working on #88061.
Describe the problem
The pronamespace column in pg_proc is NULL for all the built-in functions.
This is incorrect:
- we want the OID of
pg_catalogfor all the "base" built-ins - and the OID of
crdb_internalfor the crdb_internal built-ins
Additionally, once the above is achieved, the crdb_internal. prefix should be stripped in the proname column.
To Reproduce
SELECT n.nspname AS "Schema"
p.proname AS "Name"
FROM pg_proc p
LEFT JOIN ps_namespace n ON n.oid = p.pronamespacecc @rafiss for triage.
Jira issue: CRDB-23240
Epic: CRDB-23454
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-sql-pgcompatSemantic compatibility with PostgreSQLSemantic compatibility with PostgreSQLC-bugCode not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.T-sql-foundationsSQL Foundations Team (formerly SQL Schema + SQL Sessions)SQL Foundations Team (formerly SQL Schema + SQL Sessions)