I propose the attached patch to replace the CACHEX_elog() macros with asingle varargs version.
-- Peter Eisentraut http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services