Is there a way to know the OID of the current plpgsql function from inside the function? What I really need is to extract the name of the schema where the function is stored. -- matko ---------------------------(end of broadcast)--------------------------- TIP 5: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq