Whole-row references were broken for subqueries and functions, because attr_needed/attr_widths optimization failed to allow for Vars with attno zero in this case.  Per report from Tatsuo Ishii.
Whole-row references were broken for subqueries and functions, because
attr_needed/attr_widths optimization failed to allow for Vars with attno
zero in this case.  Per report from Tatsuo Ishii.

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