Since the whole "update but don't overwrite" thing can be handled with an upsert, I've made a fresh, much smaller PR to do just that. https://github.com/postgis/postgis/pull/665/files P.