Re: [GENERAL] Why doesn't `RAISE EXCEPTION` provide error context?

2015-04-02 Thread Taytay
There appears to be a fair amount of nuance here, but I am _very_ impressed with how quickly you have responded. Thank you for your quick attention to this issue! (Yet another thing that makes me happy to be using Postgres). We have fair amount of business logic in Postgres functions, and the abil

[GENERAL] Why doesn't `RAISE EXCEPTION` provide error context?

2015-04-01 Thread Taytay
We make heavy use of `GET STACKED DIAGNOSTICS` to determine where errors happened. However, I am trying to use RAISE EXCEPTION to report errors, and have discovered that RAISE is specifically prevented from adding to the error context: So that means that this doesn't work: I've posted more de