]> granicus.if.org Git - postgresql/commit
Convert PageAddItem into a macro to save a few cycles.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 9 Sep 2016 22:17:07 +0000 (18:17 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 9 Sep 2016 22:17:07 +0000 (18:17 -0400)
commit1a4be103a523db8d47b464463ba175cc664442b2
tree51b2d399b5d8531f049001d8d0a6bf4366a1b7dc
parentb1328d78f88cdf4f7504004159e530b776f0de16
Convert PageAddItem into a macro to save a few cycles.

Nowadays this is just a backwards-compatibility wrapper around
PageAddItemExtended, so let's avoid the extra level of function call.
In addition, because pretty much all callers are passing constants
for the two bool arguments, compilers will be able to constant-fold
the conversion to a flags bitmask.

Discussion: <552.1473445163@sss.pgh.pa.us>
src/backend/storage/page/bufpage.c
src/include/storage/bufpage.h