RAISE EXCEPTION ''ERROR IN %'', TG_NAME;
Is there a similar set of special variables defined for "normal", i.e., non-trigger functions, too?
---------------------------(end of broadcast)--------------------------- TIP 6: explain analyze is your friend