Repair bug reported by ldm@apartia.com: Append nodes, which don't actually use their targetlist, are given a targetlist that is just a pointer to the first appended plan's targetlist.  This is OK, but what is not OK is that any sub-select expressions in said tlist were being entered in the subPlan lists of both the Append and the first appended plan.  That led to two startup and two shutdown calls for the same plan node at exec time, which led to crashes.  Fix is to not generate a list of subPlans for an Append node.  Same problem and fix apply to other node types that don't have a real, functioning targetlist: Material, Sort, Unique, Hash.
Repair bug reported by ldm@apartia.com: Append nodes, which don't
actually use their targetlist, are given a targetlist that is just a
pointer to the first appended plan's targetlist.  This is OK, but what
is not OK is that any sub-select expressions in said tlist were being
entered in the subPlan lists of both the Append and the first appended
plan.  That led to two startup and two shutdown calls for the same
plan node at exec time, which led to crashes.  Fix is to not generate
a list of subPlans for an Append node.  Same problem and fix apply
to other node types that don't have a real, functioning targetlist:
Material, Sort, Unique, Hash.

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