And here is a rebased patch for the original feature. I think thisaddresses all raised concerns and suggestions now.
-- Peter Eisentraut http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services