]> granicus.if.org Git - postgresql/commit
Tweak elog.c's logic for promoting errors into more severe errors.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 5 Sep 2004 02:01:41 +0000 (02:01 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 5 Sep 2004 02:01:41 +0000 (02:01 +0000)
commitcefb4b141b0ad68f803d4987f259aa1097307467
tree36229f1791869b191474cb9e5307961abcd6fb1d
parent346900e83b81cb29f5e948253a56ad3eca84b5e9
Tweak elog.c's logic for promoting errors into more severe errors.
Messages of less than ERROR severity should never be promoted (this
fixes Gaetano Mendola's problem with a COMMERROR becoming a PANIC,
and is obvious in hindsight anyway).  Do all promotion in errstart
not errfinish, to ensure that output decisions are made correctly;
the former coding could suppress logging of promoted errors, which
doesn't seem like a good idea.  Eliminate some redundant code too.
src/backend/utils/error/elog.c