Is it possible to get the list of user-defined Types & Domains that are used in all the stored procedures and user-defined functions?
1 Answer
Not easily, because the body of functions is stored as a string. One would have to parse that, which is particularly difficult, as there are so many procedural languages in PostgreSQL.
You could perform a substring search in the source code, but that is notoriously unreliable.
2 Comments
Mano
Thank you, just curious....'pg_depend' table do not have any information regarding procedure/function dependant objects?
Laurenz Albe
No, not for the types used only in the function body.