Repair some problems in bgwriter start/stop logic.  In particular, don't allow the bgwriter to start before the startup subprocess has finished ... it tends to crash otherwise.  (The same problem may have existed for the checkpointer, I'm not entirely sure.)  Remove some code that was redundant because the bgwriter is handled as a member of the backend list.
Repair some problems in bgwriter start/stop logic.  In particular, don't
allow the bgwriter to start before the startup subprocess has finished
... it tends to crash otherwise.  (The same problem may have existed for
the checkpointer, I'm not entirely sure.)  Remove some code that was
redundant because the bgwriter is handled as a member of the backend list.

jmcatamney/gpdb,xuegang/gpdb,tangp3/gpdb,lintzc/gpdb,rubikloud/gpdb,cjcjameson/gpdb,techdragon/Postgres-XL,ashwinstar/gpdb,ahachete/gpdb,rvs/gpdb,lpetrov-pivotal/gpdb,kaknikhil/gpdb,janebeckman/gpdb,xuegang/gpdb,rvs/gpdb,Postgres-XL/Postgres-XL,kmjungersen/PostgresXL,Chibin/gpdb,edespino/gpdb,greenplum-db/gpdb,0x0FFF/gpdb,tpostgres-projects/tPostgres,janebeckman/gpdb,snaga/postgres-xl,CraigHarris/gpdb,foyzur/gpdb,cjcjameson/gpdb,Chibin/gpdb,lintzc/gpdb,jmcatamney/gpdb,tpostgres-projects/tPostgres,Chibin/gpdb,yazun/postgres-xl,rubikloud/gpdb,arcivanov/postgres-xl,janebeckman/gpdb,royc1/gpdb,Quikling/gpdb,ashwinstar/gpdb,kmjungersen/PostgresXL,rvs/gpdb,lisakowen/gpdb,snaga/postgres-xl,xuegang/gpdb,edespino/gpdb,Chibin/gpdb,0x0FFF/gpdb,royc1/gpdb,Chibin/gpdb,tangp3/gpdb,xinzweb/gpdb,rubikloud/gpdb,atris/gpdb,cjcjameson/gpdb,0x0FFF/gpdb,lisakowen/gpdb,yuanzhao/gpdb,jmcatamney/gpdb,ahachete/gpdb,randomtask1155/gpdb,greenplum-db/gpdb,royc1/gpdb,janebeckman/gpdb,yuanzhao/gpdb,zeroae/postgres-xl,rvs/gpdb,rvs/gpdb,xuegang/gpdb,Chibin/gpdb,lpetrov-pivotal/gpdb,cjcjameson/gpdb,yuanzhao/gpdb,lpetrov-pivotal/gpdb,greenplum-db/gpdb,chrishajas/gpdb,oberstet/postgres-xl,jmcatamney/gpdb,snaga/postgres-xl,royc1/gpdb,rubikloud/gpdb,lisakowen/gpdb,foyzur/gpdb,lintzc/gpdb,xinzweb/gpdb,cjcjameson/gpdb,rvs/gpdb,adam8157/gpdb,xinzweb/gpdb,CraigHarris/gpdb,cjcjameson/gpdb,ovr/postgres-xl,postmind-net/postgres-xl,ovr/postgres-xl,adam8157/gpdb,yuanzhao/gpdb,zaksoup/gpdb,chrishajas/gpdb,xinzweb/gpdb,ashwinstar/gpdb,zaksoup/gpdb,lisakowen/gpdb,xinzweb/gpdb,0x0FFF/gpdb,kmjungersen/PostgresXL,0x0FFF/gpdb,xuegang/gpdb,yuanzhao/gpdb,ahachete/gpdb,oberstet/postgres-xl,pavanvd/postgres-xl,jmcatamney/gpdb,pavanvd/postgres-xl,pavanvd/postgres-xl,rvs/gpdb,zaksoup/gpdb,ovr/postgres-xl,greenplum-db/gpdb,randomtask1155/gpdb,lpetrov-pivotal/gpdb,atris/gpdb,atris/gpdb,kaknikhil/gpdb,kaknikhil/gpdb,xuegang/gpdb,edespino/gpdb,rvs/gpdb,lisakowen/gpdb,edespino/gpdb,xuegang/gpdb,50wu/gpdb,lintzc/gpdb,royc1/gpdb,cjcjameson/gpdb,yuanzhao/gpdb,xuegang/gpdb,kmjungersen/PostgresXL,Postgres-XL/Postgres-XL,foyzur/gpdb,Quikling/gpdb,ahachete/gpdb,edespino/gpdb,kaknikhil/gpdb,Quikling/gpdb,edespino/gpdb,xinzweb/gpdb,ashwinstar/gpdb,greenplum-db/gpdb,Quikling/gpdb,foyzur/gpdb,yuanzhao/gpdb,lintzc/gpdb,techdragon/Postgres-XL,ahachete/gpdb,postmind-net/postgres-xl,xinzweb/gpdb,yuanzhao/gpdb,postmind-net/postgres-xl,kmjungersen/PostgresXL,yuanzhao/gpdb,xuegang/gpdb,lpetrov-pivotal/gpdb,lisakowen/gpdb,Quikling/gpdb,adam8157/gpdb,techdragon/Postgres-XL,janebeckman/gpdb,chrishajas/gpdb,50wu/gpdb,jmcatamney/gpdb,tangp3/gpdb,edespino/gpdb,adam8157/gpdb,rvs/gpdb,janebeckman/gpdb,rubikloud/gpdb,arcivanov/postgres-xl,tangp3/gpdb,Chibin/gpdb,postmind-net/postgres-xl,CraigHarris/gpdb,Quikling/gpdb,ashwinstar/gpdb,tangp3/gpdb,ashwinstar/gpdb,edespino/gpdb,kaknikhil/gpdb,lpetrov-pivotal/gpdb,cjcjameson/gpdb,tangp3/gpdb,jmcatamney/gpdb,snaga/postgres-xl,lpetrov-pivotal/gpdb,zaksoup/gpdb,foyzur/gpdb,foyzur/gpdb,janebeckman/gpdb,50wu/gpdb,rubikloud/gpdb,0x0FFF/gpdb,randomtask1155/gpdb,xinzweb/gpdb,50wu/gpdb,yazun/postgres-xl,tpostgres-projects/tPostgres,lisakowen/gpdb,chrishajas/gpdb,foyzur/gpdb,lintzc/gpdb,zaksoup/gpdb,zeroae/postgres-xl,yazun/postgres-xl,50wu/gpdb,Chibin/gpdb,zeroae/postgres-xl,randomtask1155/gpdb,kaknikhil/gpdb,lintzc/gpdb,oberstet/postgres-xl,ahachete/gpdb,CraigHarris/gpdb,arcivanov/postgres-xl,cjcjameson/gpdb,zaksoup/gpdb,kaknikhil/gpdb,lintzc/gpdb,Chibin/gpdb,tpostgres-projects/tPostgres,Postgres-XL/Postgres-XL,lintzc/gpdb,oberstet/postgres-xl,royc1/gpdb,randomtask1155/gpdb,tangp3/gpdb,lpetrov-pivotal/gpdb,tpostgres-projects/tPostgres,arcivanov/postgres-xl,cjcjameson/gpdb,edespino/gpdb,postmind-net/postgres-xl,Quikling/gpdb,CraigHarris/gpdb,ovr/postgres-xl,chrishajas/gpdb,pavanvd/postgres-xl,0x0FFF/gpdb,zeroae/postgres-xl,kaknikhil/gpdb,Chibin/gpdb,arcivanov/postgres-xl,randomtask1155/gpdb,adam8157/gpdb,ovr/postgres-xl,Postgres-XL/Postgres-XL,adam8157/gpdb,CraigHarris/gpdb,lisakowen/gpdb,zaksoup/gpdb,50wu/gpdb,rubikloud/gpdb,ahachete/gpdb,zeroae/postgres-xl,snaga/postgres-xl,atris/gpdb,adam8157/gpdb,ahachete/gpdb,Quikling/gpdb,zaksoup/gpdb,yazun/postgres-xl,atris/gpdb,atris/gpdb,janebeckman/gpdb,adam8157/gpdb,randomtask1155/gpdb,50wu/gpdb,chrishajas/gpdb,foyzur/gpdb,chrishajas/gpdb,ashwinstar/gpdb,atris/gpdb,rvs/gpdb,50wu/gpdb,Quikling/gpdb,kaknikhil/gpdb,techdragon/Postgres-XL,janebeckman/gpdb,rubikloud/gpdb,pavanvd/postgres-xl,atris/gpdb,CraigHarris/gpdb,greenplum-db/gpdb,Quikling/gpdb,CraigHarris/gpdb,techdragon/Postgres-XL,CraigHarris/gpdb,tangp3/gpdb,kaknikhil/gpdb,oberstet/postgres-xl,royc1/gpdb,Postgres-XL/Postgres-XL,arcivanov/postgres-xl,greenplum-db/gpdb,janebeckman/gpdb,yuanzhao/gpdb,chrishajas/gpdb,jmcatamney/gpdb,royc1/gpdb,randomtask1155/gpdb,ashwinstar/gpdb,0x0FFF/gpdb,edespino/gpdb,yazun/postgres-xl,greenplum-db/gpdb