The patch fixes a rare bug that may occur when one tries to vacuum a single table. The table name is de-allocated by the CommitTransactionCommand() in vc_init() before it is copied in VacRel.data and sometimes this causes a SIGSEGV. My patch simply moves the strcpy before vc_init.
The patch fixes a rare bug that may occur when one tries to vacuum a single
table. The table name is de-allocated by the CommitTransactionCommand()
in vc_init() before it is copied in VacRel.data and sometimes this causes
a SIGSEGV. My patch simply moves the strcpy before vc_init.

Submitted by Massimo Dal Zotto <dz@cs.unitn.it>.

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