Squash some more CLUSTER bugs.  Never has worked on multiple-column indexes, apparently, nor on functional indexes with more than one input column (force of natts = 1 was in the wrong branch of IF statement). Coredumped if source relation contained any uncommitted tuples, due to failure to test for success return from heap_fetch.  Fetched tuple was passed directly to heap_insert, which clobbers the TID and commit status in the tuple header it's given, which meant that the source relation's tuples all got trashed as the copy proceeded.  Abort partway through, and you're left with a lot of missing tuples. I wonder what else is lurking here ...
Squash some more CLUSTER bugs.  Never has worked on multiple-column
indexes, apparently, nor on functional indexes with more than one input
column (force of natts = 1 was in the wrong branch of IF statement).
Coredumped if source relation contained any uncommitted tuples, due to
failure to test for success return from heap_fetch.  Fetched tuple
was passed directly to heap_insert, which clobbers the TID and commit
status in the tuple header it's given, which meant that the source
relation's tuples all got trashed as the copy proceeded.  Abort partway
through, and you're left with a lot of missing tuples.
I wonder what else is lurking here ...

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