postgresql/src/backend/utils/error
Stephen Frost 9bd0feeba8 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.
2013-07-25 09:41:55 -04:00
..
assert.c Update copyrights for 2013 2013-01-01 17:15:01 -05:00
elog.c Improvements to GetErrorContextStack() 2013-07-25 09:41:55 -04:00
Makefile Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00