For some reason access/tupmacs.h has been #including utils/memutils.h,
Tom Lane <tgl@sss.pgh.pa.us>
For some reason access/tupmacs.h has been #including utils/memutils.h, which is neither needed by nor related to that header. Remove the bogus inclusion and instead include the header in those C files that actually need it. Also fix unnecessary inclusions and bad inclusion order in tsearch2 files.