Re: errbacktrace

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: errbacktrace
Дата
Msg-id 20191123161406.GA8050@alvherre.pgsql
обсуждение исходный текст
Ответ на Re: errbacktrace  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
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



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: errbacktrace
Следующее
От: Tom Lane
Дата:
Сообщение: XID-wraparound hazards in LISTEN/NOTIFY