elog a stack trace - Mailing list pgsql-hackers

From Jeff Janes
Subject elog a stack trace
Date
Msg-id CAMkU=1wCVL53o+ye-bX8UO41gPJESimNJGGvbc1u7qqe3VXOOw@mail.gmail.com
Whole thread Raw
Responses Re: elog a stack trace  (Andres Freund <andres@2ndquadrant.com>)
Re: elog a stack trace  ("MauMau" <maumau307@gmail.com>)
List pgsql-hackers

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(,...)

But those don't exist.

Cheers,

Jeff

pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Sending out a request for more buildfarm animals?
Next
From: Andres Freund
Date:
Subject: Re: elog a stack trace