Fix create_unique_plan() so it doesn't generate useless entries in the output targetlist of the Unique or HashAgg plan.  This code was OK when written, but subsequent changes to use "physical tlists" where possible had broken it: given an input subplan that has extra variables added to avoid a projection step, it would copy those extra variables into the upper tlist, which is pointless since a projection has to happen anyway.
Fix create_unique_plan() so it doesn't generate useless entries in the
output targetlist of the Unique or HashAgg plan.  This code was OK when
written, but subsequent changes to use "physical tlists" where possible
had broken it: given an input subplan that has extra variables added to
avoid a projection step, it would copy those extra variables into the
upper tlist, which is pointless since a projection has to happen anyway.

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