I need to get DDL of every function in my db for versioning purpose. Here is the query, but it works only for functions in public schema. When I'm trying to use it to get create of functions which exists in public and match schema I get error that subquery returns too many rows.
By checking all values from pg_proc using this query:
select * from pg_proc where proname = 'match_group_1_3_2';
Only values that changes is pronamespace:
How to distinguish both (or more) function? How to distinguish them if they are in the same schema but with different arguments? (by overloading)
I need to use native postgres catalog, not ANSI type - due to performance issues.