Re: Better client reporting for "immediate stop" shutdowns - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Better client reporting for "immediate stop" shutdowns
Date
Msg-id 2240761.1609283120@sss.pgh.pa.us
Whole thread Raw
In response to Re: Better client reporting for "immediate stop" shutdowns  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
I wrote:
> I had a thought while looking at elog.c: we could further reduce the risk
> of quickdie() crashing if we make it do what elog.c does when it gets into
> error recursion trouble:
>             error_context_stack = NULL;
>             debug_query_string = NULL;

On closer inspection, there's not much need to touch debug_query_string
here, because elog.c only consults that for making log entries, which
we're suppressing.  I pushed it with just the error_context_stack reset.

            regards, tom lane



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Cleanup some -I$(libpq_srcdir) in makefiles
Next
From: Justin Pryzby
Date:
Subject: Re: create table like: ACCESS METHOD