Unsurprisingly, the sequencing of startup actions in postmaster.c is extremely tricky and needs more thinking. All the rest worked pretty well, I thought.
-- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services