A few fixups in error handling: mark pg_re_throw() as noreturn for gcc,
Tom Lane <tgl@sss.pgh.pa.us>
A few fixups in error handling: mark pg_re_throw() as noreturn for gcc, and for other compilers, insert a dummy exit() call so that they understand PG_RE_THROW() doesn't return. Insert fflush(stderr) in ExceptionalCondition, per recent buildfarm evidence that that might not happen automatically on some platforms. And const-ify ExceptionalCondition's declaration while at it.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/error/assert.c | modified | +10 −4 |
| src/backend/utils/error/elog.c | modified | +11 −1 |
| src/include/postgres.h | modified | +4 −3 |
| src/include/utils/elog.h | modified | +11 −2 |