summaryrefslogtreecommitdiff
path: root/src/backend/commands/dbcommands.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2010-03-20 00:58:32 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2010-03-20 00:58:32 +0000
commit40db749c702aa386b1c5c0ba7a7ac4e0a2ddf11b (patch)
treeb0abdbbd8e43e51abd123af5704f029a96b90f5c /src/backend/commands/dbcommands.c
parentdbaaca266a814813e6951d3440020232130f3aa6 (diff)
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.
Diffstat (limited to 'src/backend/commands/dbcommands.c')
0 files changed, 0 insertions, 0 deletions