Initialize subsystems before promoting
Initialize subsystems before promoting

The previous patch failed, since we could not actually access the
catalog without some more initialization. Pull as much initialization
from the old Pass4 as possible -- some of it is likely not needed, but
this seems to get things working for now.

Chibin/gpdb,lisakowen/gpdb,jmcatamney/gpdb,lisakowen/gpdb,50wu/gpdb,Chibin/gpdb,lisakowen/gpdb,adam8157/gpdb,xinzweb/gpdb,50wu/gpdb,Chibin/gpdb,adam8157/gpdb,ashwinstar/gpdb,greenplum-db/gpdb,adam8157/gpdb,adam8157/gpdb,ashwinstar/gpdb,greenplum-db/gpdb,adam8157/gpdb,lisakowen/gpdb,lisakowen/gpdb,Chibin/gpdb,lisakowen/gpdb,jmcatamney/gpdb,lisakowen/gpdb,ashwinstar/gpdb,adam8157/gpdb,lisakowen/gpdb,greenplum-db/gpdb,greenplum-db/gpdb,Chibin/gpdb,50wu/gpdb,jmcatamney/gpdb,xinzweb/gpdb,50wu/gpdb,Chibin/gpdb,jmcatamney/gpdb,xinzweb/gpdb,50wu/gpdb,jmcatamney/gpdb,xinzweb/gpdb,greenplum-db/gpdb,50wu/gpdb,xinzweb/gpdb,xinzweb/gpdb,ashwinstar/gpdb,50wu/gpdb,adam8157/gpdb,xinzweb/gpdb,Chibin/gpdb,Chibin/gpdb,jmcatamney/gpdb,50wu/gpdb,ashwinstar/gpdb,greenplum-db/gpdb,jmcatamney/gpdb,Chibin/gpdb,Chibin/gpdb,xinzweb/gpdb,ashwinstar/gpdb,adam8157/gpdb,greenplum-db/gpdb,ashwinstar/gpdb,jmcatamney/gpdb,greenplum-db/gpdb,ashwinstar/gpdb