This is a WIP patch (for the TODO item in the subject) that I'm puttingin the Commit Fest queue for 8.5.
regards...-- Dickson S. Guedes mail/xmpp: guedes(at)guedesoft(dot)net - skype: guedizhttp://guedesoft.net - http://www.postgresql.org.br