Somehow I managed to include an unrelated patch as attachment. Here's
another attempt (on which I also lightly touched ddl.sgml with relevant
changes).
--
Álvaro Herrera https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services