If an index depends on no columns of its table, give it a dependency on the whole table instead, to ensure that it goes away when the table is dropped. Per bug #3723 from Sam Mason.
If an index depends on no columns of its table, give it a dependency on the
whole table instead, to ensure that it goes away when the table is dropped.
Per bug #3723 from Sam Mason.

Backpatch as far as 7.4; AFAICT 7.3 does not have the issue, because it doesn't
have general-purpose expression indexes and so there must be at least one
column referenced by an index.

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