Stefan(dot)Ardeleanu(at)siveco(dot)ro wrote:
> I have a lot of plpgsql functions and I would like to catch the original
> postgresql error and, based on that value, to throw with a raise or
> something my custom error.
The section "Trapping Errors" in the plpgsql chapter of the manuals
covers this. Does this not do what you want?
--
Richard Huxton
Archonet Ltd