This part of the patch didn't end up being necessary, since the updated implementation of logical decoding of TRUNCATE could do without it.
-- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services