Re: ereport bug

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: ereport bug
Дата
Msg-id 11429.1421260801@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: ereport bug  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: ereport bug  (Robert Haas <robertmhaas@gmail.com>)
Re: ereport bug  (Воронин Дмитрий <carriingfate92@yandex.ru>)
Список pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> On Mon, Jan 12, 2015 at 6:27 AM, Dmitry Voronin
> <carriingfate92@yandex.ru> wrote:
>> I am attaching to this letter a test case that shows the behavior
>> errcontext() macro and the way to fix it.

> So the upshot of this is that given errfinish(A, B, C), where A, B,
> and C are expressions, my gcc is choosing to evaluate C, then B, then
> A, then the errfinish call itself.  But whoever wrote the errcontext()
> macro evidently thought, in this kind of situation, the compiler would
> be certain to evaluate A, then B, then C, then errfinish.  But it
> doesn't.

http://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=1f9bf05e539646103c518bcbb49c04919b238f7a
        regards, tom lane



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

Предыдущее
От: Peter Geoghegan
Дата:
Сообщение: Re: hung backends stuck in spinlock heavy endless loop
Следующее
От: Daurnimator
Дата:
Сообщение: Re: libpq bad async behaviour