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