postgresql/src/include/utils
Tom Lane 0db3c5552a Improve unreachability recognition in elog() macro.
Some experimentation with an older version of gcc showed that it is able
to determine whether "if (elevel_ >= ERROR)" is compile-time constant
if elevel_ is declared "const", but otherwise not so much.  We had
accounted for that in ereport() but were too miserly with braces to
make it so in elog().  I don't know how many currently-interesting
compilers have the same quirk, but in case it will save some code
space, let's make sure that elog() is on the same footing as ereport()
for this purpose.

Back-patch to 9.3 where we introduced pg_unreachable() calls into
elog/ereport.
2016-09-10 17:54:23 -04:00
..
.gitignore Avoid maintaining three separate copies of the error codes list. 2011-02-03 22:32:49 -05:00
acl.h Remove tabs after spaces in C comments 2014-05-06 11:26:28 -04:00
array.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
ascii.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
attoptcache.h Fix include-guard 2013-07-07 13:38:27 +02:00
builtins.h Fix GiST index build for NaN values in geometric types. 2016-07-14 18:46:00 -04:00
bytea.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
cash.h Add casts from int4 and int8 to numeric. 2011-04-05 09:35:43 -04:00
catcache.h Remove tabs after spaces in C comments 2014-05-06 11:26:28 -04:00
combocid.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
date.h Clean up references to SQL92 2013-04-20 11:04:41 -04:00
datetime.h Support timezone abbreviations that sometimes change. 2014-10-16 15:22:17 -04:00
datum.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
dynahash.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
dynamic_loader.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
elog.h Improve unreachability recognition in elog() macro. 2016-09-10 17:54:23 -04:00
evtcache.h pgindent run for release 9.3 2013-05-29 16:58:43 -04:00
fmgrtab.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
formatting.h Fix to_char() to use ASCII-only case-folding rules where appropriate. 2013-03-05 13:02:30 -05:00
geo_decls.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
guc.h Remove tabs after spaces in C comments 2014-05-06 11:26:28 -04:00
guc_tables.h pgindent run for release 9.3 2013-05-29 16:58:43 -04:00
help_config.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
hsearch.h Remove tabs after spaces in C comments 2014-05-06 11:26:28 -04:00
inet.h Remove tabs after spaces in C comments 2014-05-06 11:26:28 -04:00
int8.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
inval.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
json.h Add new JSON processing functions and parser API. 2013-03-29 14:12:13 -04:00
jsonapi.h Remove trailing commas in enums. 2016-04-14 19:25:17 -07:00
logtape.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
lsyscache.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
memutils.h Fix bogus "out of memory" reports in tuplestore.c. 2015-08-04 18:18:46 -04:00
nabstime.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
numeric.h Remove bogus dependencies on NUMERIC_MAX_PRECISION. 2016-08-14 15:06:02 -04:00
palloc.h Remove tabs after spaces in C comments 2014-05-06 11:26:28 -04:00
pg_crc.h Remove tabs after spaces in C comments 2014-05-06 11:26:28 -04:00
pg_crc_tables.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
pg_locale.h Cope if platform declares mbstowcs_l(), but not locale_t, in <xlocale.h>. 2016-03-15 13:19:58 -04:00
pg_lzcompress.h Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
pg_rusage.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
plancache.h Explicitly support the case that a plancache's raw_parse_tree is NULL. 2014-11-12 15:58:44 -05:00
portal.h Fix subtransaction cleanup after an outer-subtransaction portal fails. 2015-09-04 13:36:50 -04:00
ps_status.h Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
rangetypes.h SP-GiST support of the range adjacent operator -|- 2013-03-08 15:03:19 +02:00
rbtree.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
rel.h Remove tabs after spaces in C comments 2014-05-06 11:26:28 -04:00
relcache.h Fix the logic for putting relations into the relcache init file. 2015-06-25 14:39:05 -04:00
relmapper.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
reltrigger.h pgindent run for release 9.3 2013-05-29 16:58:43 -04:00
resowner.h Remove tabs after spaces in C comments 2014-05-06 11:26:28 -04:00
resowner_private.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
selfuncs.h Remove tabs after spaces in C comments 2014-05-06 11:26:28 -04:00
snapmgr.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
snapshot.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
sortsupport.h Remove tabs after spaces in C comments 2014-05-06 11:26:28 -04:00
spccache.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
syscache.h Use a safer method for determining whether relcache init file is stale. 2015-06-07 15:32:09 -04:00
timeout.h Be more predictable about reporting "lock timeout" vs "statement timeout". 2016-05-27 10:40:20 -04:00
timestamp.h Clean up references to SQL92 2013-04-20 11:04:41 -04:00
tqual.h Remove tabs after spaces in C comments 2014-05-06 11:26:28 -04:00
tuplesort.h Remove tabs after spaces in C comments 2014-05-06 11:26:28 -04:00
tuplestore.h Remove tabs after spaces in C comments 2014-05-06 11:26:28 -04:00
typcache.h Remove tabs after spaces in C comments 2014-05-06 11:26:28 -04:00
tzparser.h Support timezone abbreviations that sometimes change. 2014-10-16 15:22:17 -04:00
uuid.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
varbit.h Predict integer overflow to avoid buffer overruns. 2014-02-17 09:33:32 -05:00
xml.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00