Re: elog a stack trace

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: elog a stack trace
Дата
Msg-id 20140502151835.GA12715@awork2.anarazel.de
обсуждение исходный текст
Ответ на elog a stack trace  (Jeff Janes <jeff.janes@gmail.com>)
Список pgsql-hackers
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 like to set
> 
> log_error_verbosity = stack
> 
> or
> 
> elog_stack(,...)

There's backtrace() on several platforms. The stacktraces are less
detailed than what gdb gives you tho.

Greetings,

Andres Freund

-- Andres Freund                       http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training &
Services



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Jeff Janes
Дата:
Сообщение: elog a stack trace
Следующее
От: Josh Berkus
Дата:
Сообщение: Re: pgaudit - an auditing extension for PostgreSQL