Alvaro Herrera wrote:
> No, we don't have SQLERRM support yet. If you were asking about getting
> the messages from RAISE EXCEPTION, I'm afraid there's no way to get it
> in the EXCEPTION clause.
>
> If you want to contribute it, patches are welcome ...
Actually, Pavel Stehule sent in a patch for this a few days ago, which
I'll be reviewing and apply to HEAD shortly -- it will be in 8.1.
-Neil