postgresql/src/backend/storage
Tom Lane 75d4be8ddd Clear error_context_stack and debug_query_string at the beginning of proc_exit,
so that we won't try to attach any context printouts to messages that get
emitted while exiting.  Per report from Dennis Koegel, the context functions
won't necessarily work after we've started shutting down the backend, and it
seems possible that debug_query_string could be pointing at freed storage
as well.  The context information doesn't seem particularly relevant to
such messages anyway, so there's little lost by suppressing it.

Back-patch to all supported branches.  I can only demonstrate a crash with
log_disconnections messages back to 8.1, but the risk seems real in 8.0 and
before anyway.
2010-03-20 00:58:38 +00:00
..
buffer Fix ReadBuffer() to correctly handle the case where it's trying to extend 2006-01-06 00:04:33 +00:00
file Fix bug in temporary file management with subtransactions. A cursor opened 2009-12-03 11:04:13 +00:00
freespace Tag appropriate files for rc3 2004-12-31 22:04:05 +00:00
ipc Clear error_context_stack and debug_query_string at the beginning of proc_exit, 2010-03-20 00:58:38 +00:00
large_object Tag appropriate files for rc3 2004-12-31 22:04:05 +00:00
lmgr Remove unnecessary .seg/.section directives, per Alan Stange. 2006-05-11 21:58:37 +00:00
page Tag appropriate files for rc3 2004-12-31 22:04:05 +00:00
smgr Fix WAL replay of truncate operations to cope with the possibility that the 2007-07-20 16:30:12 +00:00
Makefile $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00