postgresql/src/include/access
Alvaro Herrera 594e61a1de Change some test macros to return true booleans
These macros work fine when they are used directly in an "if" test or
similar, but as soon as the return values are assigned to boolean
variables (or passed as boolean arguments to some function), they become
bugs, hopefully caught by compiler warnings.  To avoid future problems,
fix the definitions so that they return actual booleans.

To further minimize the risk that somebody uses them in back-patched
fixes that only work correctly in branches starting from the current
master and not in old ones, back-patch the change to supported branches
as appropriate.

See also commit af4472bcb8, and the long
discussion (and larger patch) in the thread mentioned in its commit
message.

Discussion: https://postgr.es/m/18672.1483022414@sss.pgh.pa.us
2017-01-18 18:06:13 -03:00
..
amapi.h Generate fmgr prototypes automatically 2017-01-17 14:06:07 -05:00
amvalidate.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
attnum.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
brin.h Generate fmgr prototypes automatically 2017-01-17 14:06:07 -05:00
brin_internal.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
brin_page.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
brin_pageops.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
brin_revmap.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
brin_tuple.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
brin_xlog.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
clog.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
commit_ts.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
genam.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
generic_xlog.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
gin.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
gin_private.h Generate fmgr prototypes automatically 2017-01-17 14:06:07 -05:00
gist.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
gist_private.h Generate fmgr prototypes automatically 2017-01-17 14:06:07 -05:00
gistscan.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
hash.h Generate fmgr prototypes automatically 2017-01-17 14:06:07 -05:00
hash_xlog.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
heapam.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
heapam_xlog.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
hio.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
htup.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
htup_details.h Change some test macros to return true booleans 2017-01-18 18:06:13 -03:00
itup.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
multixact.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
nbtree.h Generate fmgr prototypes automatically 2017-01-17 14:06:07 -05:00
parallel.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
printtup.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
reloptions.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
relscan.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
rewriteheap.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
rmgr.h Add rmgr callback to name xlog record types for display purposes. 2014-09-19 16:20:29 +02:00
rmgrlist.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
sdir.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
skey.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
slru.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
spgist.h Generate fmgr prototypes automatically 2017-01-17 14:06:07 -05:00
spgist_private.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
stratnum.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
subtrans.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
sysattr.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
timeline.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
transam.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
tsmapi.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
tupconvert.h Fix ALTER TABLE / SET TYPE for irregular inheritance 2017-01-09 19:26:58 -03:00
tupdesc.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
tupmacs.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
tuptoaster.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
twophase.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
twophase_rmgr.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
valid.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
visibilitymap.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
xact.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
xlog.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
xlog_internal.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
xlogdefs.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
xloginsert.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
xlogreader.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
xlogrecord.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
xlogutils.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00