Re: [HACKERS] elog a stack trace

2014-05-06 Thread Alvaro Herrera
MauMau wrote: > On Windows, you can use Stackwalk() or Stackwalk64() Win32 API. > Several years ago, for some software, I implemented a feature that > outputs the stack trace of a crashing process to its server log > file. > > It would be very nice if PostgreSQL outputs the stack trace of a > cra

Re: [HACKERS] elog a stack trace

2014-05-05 Thread MauMau
From: "Jeff Janes" Does anyone have any hints on how to get a stack trace programmatically, rather than trying to run ps to get the pid and then attach gdb to a ephemeral process and hoping the situation has not been changed while you are doing that? I'd like to set log_error_verbosity = stack

Re: [HACKERS] elog a stack trace

2014-05-02 Thread Andres Freund
Hi, On 2014-05-02 08:16:39 -0700, Jeff Janes wrote: > Does anyone have any hints on how to get a stack trace programmatically, > rather than trying to run ps to get the pid and then attach gdb to a > ephemeral process and hoping the situation has not been changed while you > are doing that? I'd l