Re: Suspicion of a compiler bug in clang: using ternary operator in ereport() - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Suspicion of a compiler bug in clang: using ternary operator in ereport()
Date
Msg-id 13109.1390966530@sss.pgh.pa.us
Whole thread Raw
In response to Re: Suspicion of a compiler bug in clang: using ternary operator in ereport()  (Andres Freund <andres@2ndquadrant.com>)
Responses Re: Suspicion of a compiler bug in clang: using ternary operator in ereport()
List pgsql-hackers
Andres Freund <andres@2ndquadrant.com> writes:
>> Absolutely.  Probably best to save errno into a local just before the
>> ereport.

> I think just resetting to edata->saved_errno is better and sufficient?

-1 --- that field is nobody's business except elog.c's.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: [PATCH] Support for pg_stat_archiver view
Next
From: Robert Haas
Date:
Subject: Re: Retain dynamic shared memory segments for postmaster lifetime