copy_relation_data was mistakenly assuming that the source relation would always be already open at the smgr level.  Per bug report from Fabien Coelho.
copy_relation_data was mistakenly assuming that the source relation
would always be already open at the smgr level.  Per bug report from
Fabien Coelho.

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