I'm surprised that there is so much activity in this thread. Is thispatch being considered for pg10?
-- Álvaro Herrera https://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services