Is there anyway from within a plpgsql function that you can get the name of the function? Or even the OID of the function?
I know there are some "special" variables (such as FOUND) within plpgsql, but there doesn't seem to be any way of getting this. (Although, I've read where it seems to be possible if your function is written in C). It's not critical, but it would make something I'm doing a little nicer/less fragile.
I'm using PostgreSQL v. 9.1.5
See Question&Answers more detail:os