OSDN Git Service

On further consideration, there's another problem here: the existing
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 5 Sep 2004 03:42:13 +0000 (03:42 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 5 Sep 2004 03:42:13 +0000 (03:42 +0000)
commit1a86e6eabfd02cec1253a7eaf8a5f859193388ad
tree432ff45ae2c5d0ea8ed35ef66fd16a11309c9688
parentcefb4b141b0ad68f803d4987f259aa1097307467
On further consideration, there's another problem here: the existing
elog() emulation code always calls errstart with ERROR error level.
This means that a recursive error call triggered by elog would do
MemoryContextReset(ErrorContext), whether or not this was actually
appropriate.  I'm surprised we haven't seen this in the field...
src/backend/utils/error/elog.c
src/include/utils/elog.h