Fix two bugs in change_owner_recurse_to_sequences: it was grabbing an overly strong lock on pg_depend, and it wasn't closing the rel when done. The latter bug was masked by the ResourceOwner code, which is something that should be changed.
Fix two bugs in change_owner_recurse_to_sequences: it was grabbing an
overly strong lock on pg_depend, and it wasn't closing the rel when done.
The latter bug was masked by the ResourceOwner code, which is something
that should be changed.

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