postgresql/src/backend
Tom Lane f784f05e95 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:09 +00:00
..
access Adjust comment in .history file to match recovery target specified. Comment 2010-03-19 11:05:15 +00:00
bootstrap pgindent run for 9.0 2010-02-26 02:01:40 +00:00
catalog Modify error context callback functions to not assume that they can fetch 2010-03-19 22:54:41 +00:00
commands Forbid renaming columns of objects whose column names are system-generated. 2010-03-20 00:43:42 +00:00
executor Modify error context callback functions to not assume that they can fetch 2010-03-19 22:54:41 +00:00
foreign Wrap calls to SearchSysCache and related functions using macros. 2010-02-14 18:42:19 +00:00
lib Update copyright for the year 2010. 2010-01-02 16:58:17 +00:00
libpq Revert all keepalive moves, reevaluate. 2010-03-13 16:56:37 +00:00
main Update copyright for the year 2010. 2010-01-02 16:58:17 +00:00
nodes pgindent run for 9.0 2010-02-26 02:01:40 +00:00
optimizer Modify error context callback functions to not assume that they can fetch 2010-03-19 22:54:41 +00:00
parser Pass incompletely-transformed aggregate argument lists as separate parameters 2010-03-17 16:52:38 +00:00
po Translation updates for 9.0alpha4 2010-02-19 00:40:05 +00:00
port pgindent run for 9.0 2010-02-26 02:01:40 +00:00
postmaster Add some logging code for unexpected cases in pgstat.c, particularly being 2010-03-12 22:19:19 +00:00
regex pgindent run for 9.0 2010-02-26 02:01:40 +00:00
replication Add connection messages for streaming replication. log_connections 2010-03-19 19:19:38 +00:00
rewrite pgindent run for 9.0 2010-02-26 02:01:40 +00:00
snowball Update copyright for the year 2010. 2010-01-02 16:58:17 +00:00
storage Clear error_context_stack and debug_query_string at the beginning of proc_exit, 2010-03-20 00:58:09 +00:00
tcop pgindent run for 9.0 2010-02-26 02:01:40 +00:00
tsearch Allow underscores in tsearch email addressses, per RFC 5322 and report 2010-03-13 00:41:58 +00:00
utils Add connection messages for streaming replication. log_connections 2010-03-19 19:19:38 +00:00
Makefile Well, the systemtap guys moved the goalposts again: with the latest version, 2010-01-20 23:12:03 +00:00
common.mk Expand test coverage support to entire tree 2009-08-07 20:50:22 +00:00
nls.mk Convert the core lexer and parser into fully reentrant code, by making use 2009-07-13 02:02:20 +00:00