Re: [HACKERS] ereport bug

2015-01-14 Thread Robert Haas
On Wed, Jan 14, 2015 at 1:40 PM, Tom Lane t...@sss.pgh.pa.us wrote: Robert Haas robertmh...@gmail.com writes: On Mon, Jan 12, 2015 at 6:27 AM, Dmitry Voronin carriingfat...@yandex.ru wrote: I am attaching to this letter a test case that shows the behavior errcontext() macro and the way to fix

Re: [HACKERS] ereport bug

2015-01-14 Thread Robert Haas
On Mon, Jan 12, 2015 at 6:27 AM, Dmitry Voronin carriingfat...@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

Re: [HACKERS] ereport bug

2015-01-14 Thread Tom Lane
Robert Haas robertmh...@gmail.com writes: On Mon, Jan 12, 2015 at 6:27 AM, Dmitry Voronin carriingfat...@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

[HACKERS] ereport bug

2015-01-12 Thread Dmitry Voronin
Hello, postgresmen! I found incorrect execution of ereport() macro. If we pass into ereport() function 2 or more arguments, the macro errcontext does not correct execute. So, ereport() call stack is: errstarterrcontext_msgset_errcontext_domainerrmsgerrfinishpg_unreachable This bug causes that

Re: [HACKERS] ereport bug

2015-01-12 Thread Tom Lane
Dmitry Voronin carriingfat...@yandex.ru writes: divdivdivdiv data-lang=2divHello, postgresmen!/divdivš/divdivI found incorrect execution of ereport() macro. br /If we pass into ereport() function 2 or more arguments, the macro errcontext does not correct execute. So, ereport() call stack