Wrote my very first MySQL patch: http://www.danga.com/patches/mysql/mysql-show-last-binlog-event.patch Description at top of patch. It expands the THD structure for everybody, even if they're not using the feature, so that kinda sucks. I'll wait for feedback on the best way to make it optional if the extra size is too much.