Move attached to shared memory out into a separate function for clarity.
Move attached to shared memory out into a separate function for clarity.

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