Re: backtrace_on_internal_error

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Andres Freund <andres(at)anarazel(dot)de>, Peter Eisentraut <peter(at)eisentraut(dot)org>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: backtrace_on_internal_error
Date: 2023-12-19 19:22:36
Message-ID: CA+TgmoagWVtAM9_E7LV+q48LthoND-F6=GRaPQ=jqe+0OiHL7g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Dec 19, 2023 at 11:29 AM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> IMO, we aren't really going to get a massive payoff from this with
> the current backtrace output; it's just not detailed enough. It's
> better than nothing certainly, but to really move the goalposts
> we'd need something approaching gdb's "bt full" output. I wonder
> if it'd be sane to try to auto-invoke gdb. That's just blue sky
> for now, though. In the meantime, I agree with the proposal as it
> stands (that is, auto-backtrace on any XX000 error). We'll soon find
> out whether it's useless, or needs more detail to be really helpful,
> or is just right as it is. Once we have some practical experience
> with it, we can course-correct as needed.

That all seems fair to me. I'm more optimistic than you are about
getting something useful out of the current backtrace output, but (1)
I could be wrong, (2) I'd still like to have something better, and (3)
improving the backtrace output is a separate project from including
backtraces more frequently.

--
Robert Haas
EDB: http://www.enterprisedb.com

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2023-12-19 20:15:42 Re: pgsql: Prevent tuples to be marked as dead in subtransactions on standb
Previous Message Jacob Burroughs 2023-12-19 17:02:41 Re: libpq compression (part 3)