diff options
author | Stephen Frost <sfrost@snowman.net> | 2013-07-25 09:41:55 -0400 |
---|---|---|
committer | Stephen Frost <sfrost@snowman.net> | 2013-07-25 09:41:55 -0400 |
commit | 9bd0feeba85fae411e01798d5a5d76b70333e38e (patch) | |
tree | 2e26bdde3495d8fa776d404ace09aa2055e14614 /src/backend/executor/nodeHashjoin.c | |
parent | e4c6cccd8cbb96e0f64d81bde2136041492d4312 (diff) | |
download | postgresql-9bd0feeba85fae411e01798d5a5d76b70333e38e.tar.gz postgresql-9bd0feeba85fae411e01798d5a5d76b70333e38e.zip |
Improvements to GetErrorContextStack()
As GetErrorContextStack() borrowed setup and tear-down code from other
places, it was less than clear that it must only be called as a
top-level entry point into the error system and can't be called by an
exception handler (unlike the rest of the error system, which is set up
to be reentrant-safe).
Being called from an exception handler is outside the charter of
GetErrorContextStack(), so add a bit more protection against it,
improve the comments addressing why we have to set up an errordata
stack for this function at all, and add a few more regression tests.
Lack of clarity pointed out by Tom Lane; all bugs are mine.
Diffstat (limited to 'src/backend/executor/nodeHashjoin.c')
0 files changed, 0 insertions, 0 deletions