-
Notifications
You must be signed in to change notification settings - Fork 4.1k
sql: unable to retrieve built-in function descriptions via pg_objdescription #95292
Copy link
Copy link
Closed
Closed
Copy link
Labels
A-sql-builtinsSQL built-in functions and semantics thereof.SQL built-in functions and semantics thereof.A-sql-pgcompatSemantic compatibility with PostgreSQLSemantic compatibility with PostgreSQLA-sql-vtablesVirtual tables - pg_catalog, information_schema etcVirtual tables - pg_catalog, information_schema etcC-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.
Description
Describe the problem
Currently we can't retrieve builtin function comments via pg_objdescription, e.g. via
SELECT
p.proname AS "Name",
pg_catalog.obj_description(p.oid, 'pg_proc') AS "Description"
FROM pg_catalog.pg_proc p
This would be needed e.g. in:
- client-side
\dfhandling via clisqlshell: new infrastructure for describe commands #88061 - auto-completion rule for functions in pkg/comprules/rules.go
Expected behavior
Built-in comments can be retrieved via pg_objdescription.
cc @rafiss for triage.
Epic: CRDB-23454
Jira issue: CRDB-23456
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-sql-builtinsSQL built-in functions and semantics thereof.SQL built-in functions and semantics thereof.A-sql-pgcompatSemantic compatibility with PostgreSQLSemantic compatibility with PostgreSQLA-sql-vtablesVirtual tables - pg_catalog, information_schema etcVirtual tables - pg_catalog, information_schema etcC-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.