I've pushed this, with some minor tweak, and backpatched to 11 (which iswhere TRUNCATE decoding was introduced).
regards
-- Tomas Vondra http://www.2ndQuadrant.comPostgreSQL Development, 24x7 Support, Remote DBA, Training & Services