diff options
author | Stephen Frost | 2013-08-01 05:07:20 +0000 |
---|---|---|
committer | Stephen Frost | 2013-08-01 05:07:20 +0000 |
commit | ddef1a39c6798ffae899acd08ff92329dd304085 (patch) | |
tree | 9a83029259e527fa3f6b978f112b1782ea2b600d /src/tutorial/funcs.source | |
parent | a59516b6311a6c2acc89448c94913ebae598f02a (diff) |
Allow a context to be passed in for error handling
As pointed out by Tom Lane, we can allow other users of the error
handler callbacks to provide their own memory context by adding
the context to use to ErrorData and using that instead of explicitly
using ErrorContext.
This then allows GetErrorContextStack() to be called from inside
exception handlers, so modify plpgsql to take advantage of that and
add an associated regression test for it.
Diffstat (limited to 'src/tutorial/funcs.source')
0 files changed, 0 insertions, 0 deletions