If a CREATE FUNCTION/PROCEDURE is executed, is there any way to get the oid or the specific name of the object that was just created?
It seems the only way is to look tediously look at the parameter lists for each function/procedure as listed in the system catalogs or information_schema, and compare until you find an exact match?
You can use the system object identifier types for this:
In particular, to get the the oids of functions or procedures, you'd use
regprocedure, e.g.(online demo)