I am using the following sql to get the definition of a function:
SELECT prosrc FROM pg_proc WHERE proname = 'my_func'
It works good but it doesn't include the create or replace function my_func(args) part, when I want to know the input arguments and output arguments, I have to read the code in the function body, which is not convenient.
So, I would ask how to get the full source code of the function body definition.