On 2019-Nov-23, Tom Lane wrote: > I had occasion to try to use errbacktrace() just now, and it blew up > on me. Investigation finds this: > > int > errbacktrace(void) > { > ErrorData *edata = &errordata[errordata_stack_depth]; > MemoryContext oldcontext; > > Assert(false); > > > I suppose that's a debugging leftover that shouldn't have been committed? > It did what I wanted after I took out the Assert.
Uhh ... facepalm. Yes, that's not intended. I don't remember why would I want to put that there. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services