Hello
this proposal replace older unsuccessful proposal "user exception" -
http://archives.postgresql.org/pgsql-hackers/2005-06/msg00683.php
It allows only add more parameters to RAISE statement::
syntax:
RAISE [NOTICE|WARNING|EXCEPTION] literal [, params]
[WITH (eparam=expression, ...)];
possible exception params: sqlstate, detail, detail_log, hint.
Regards
Pavel Stehule