]> granicus.if.org Git - postgresql/commit
Fix elog.c to avoid infinite recursion (leading to backend crash) when
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 21 Jul 2007 22:12:11 +0000 (22:12 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 21 Jul 2007 22:12:11 +0000 (22:12 +0000)
commit6537d9ce6af90704665182e93a26f82ef315b5ae
tree26c4baba5a0afca49903b79ca585eb0259b9ab44
parent85506ffbd51e15dffbd307e4d1060cfffb24c9e0
Fix elog.c to avoid infinite recursion (leading to backend crash) when
log_min_error_statement is active and there is some problem in logging the
current query string; for example, that it's too long to include in the log
message without running out of memory.  This problem has existed since the
log_min_error_statement feature was introduced.  No doubt the reason it
wasn't detected long ago is that 8.2 is the first release that defaults
log_min_error_statement to less than PANIC level.
Per report from Bill Moran.
src/backend/utils/error/elog.c