> Is there a way to know the error description / message in a > BEGIN END block in a plpgsql functioin as in the 'Appendix A. > PostgreSQL Error Codes' ?
The variable SQLERRM as described in http://www.postgresql.org/docs/current/static/plpgsql-control-structures .html#PLPGSQL-ERROR-TRAPPING Yours, Laurenz Albe ---------------------------(end of broadcast)--------------------------- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq
