aboutsummaryrefslogtreecommitdiff
path: root/src/tutorial/basics.source
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2010-03-20 00:58:38 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2010-03-20 00:58:38 +0000
commit75d4be8ddd259124d3009e3f38185137dcd35943 (patch)
treea85a10b4f81e2661647920273bf891e4ed0b187b /src/tutorial/basics.source
parent6434d08e361a11b9059355eedb44b40a7c761bb7 (diff)
downloadpostgresql-75d4be8ddd259124d3009e3f38185137dcd35943.tar.gz
postgresql-75d4be8ddd259124d3009e3f38185137dcd35943.zip
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/tutorial/basics.source')
0 files changed, 0 insertions, 0 deletions