0

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 1

1

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.

Sign up to request clarification or add additional context in comments.

2 Comments

Thank you, just curious....'pg_depend' table do not have any information regarding procedure/function dependant objects?
No, not for the types used only in the function body.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.