fct_name text := pg_fct_name() ; -- I need it
PG_ROUTINE_OID
I think casting that to “regproc” will get you what you need. Otherwise there should be functions or a query to perform the needed lookup.
David J.
fct_name text := pg_fct_name() ; -- I need it