Teach AbortOutOfAnyTransaction to clean up partially-started transactions.
Teach AbortOutOfAnyTransaction to clean up partially-started transactions.

AbortOutOfAnyTransaction failed to do anything if the state it saw on
entry corresponded to failing partway through StartTransaction.  I fixed
AbortCurrentTransaction to cope with that case way back in commit
60b2444cc3ba037630c9b940c3c9ef01b954b87b, but evidently overlooked that
AbortOutOfAnyTransaction should do likewise.

Back-patch to all supported branches.  It's not clear that this omission
has any more-than-cosmetic consequences, but it's also not clear that it
doesn't, so back-patching seems the least risky choice.

jmcatamney/gpdb,xinzweb/gpdb,xuegang/gpdb,yuanzhao/gpdb,yuanzhao/gpdb,lintzc/gpdb,yuanzhao/gpdb,greenplum-db/gpdb,greenplum-db/gpdb,Quikling/gpdb,jmcatamney/gpdb,jmcatamney/gpdb,jmcatamney/gpdb,rvs/gpdb,royc1/gpdb,chrishajas/gpdb,greenplum-db/gpdb,Chibin/gpdb,janebeckman/gpdb,cjcjameson/gpdb,Chibin/gpdb,lisakowen/gpdb,CraigHarris/gpdb,janebeckman/gpdb,kaknikhil/gpdb,Chibin/gpdb,xinzweb/gpdb,lintzc/gpdb,jmcatamney/gpdb,zaksoup/gpdb,rvs/gpdb,royc1/gpdb,chrishajas/gpdb,adam8157/gpdb,50wu/gpdb,adam8157/gpdb,edespino/gpdb,ahachete/gpdb,xinzweb/gpdb,kaknikhil/gpdb,adam8157/gpdb,cjcjameson/gpdb,ashwinstar/gpdb,zaksoup/gpdb,50wu/gpdb,kaknikhil/gpdb,edespino/gpdb,ashwinstar/gpdb,yuanzhao/gpdb,kaknikhil/gpdb,cjcjameson/gpdb,kaknikhil/gpdb,yuanzhao/gpdb,50wu/gpdb,royc1/gpdb,jmcatamney/gpdb,50wu/gpdb,ahachete/gpdb,zaksoup/gpdb,xuegang/gpdb,edespino/gpdb,edespino/gpdb,ashwinstar/gpdb,kaknikhil/gpdb,edespino/gpdb,royc1/gpdb,ahachete/gpdb,0x0FFF/gpdb,edespino/gpdb,xuegang/gpdb,lintzc/gpdb,Quikling/gpdb,lisakowen/gpdb,CraigHarris/gpdb,greenplum-db/gpdb,cjcjameson/gpdb,royc1/gpdb,kaknikhil/gpdb,janebeckman/gpdb,chrishajas/gpdb,royc1/gpdb,yuanzhao/gpdb,Quikling/gpdb,edespino/gpdb,CraigHarris/gpdb,0x0FFF/gpdb,Chibin/gpdb,Chibin/gpdb,janebeckman/gpdb,CraigHarris/gpdb,chrishajas/gpdb,lisakowen/gpdb,ahachete/gpdb,Quikling/gpdb,chrishajas/gpdb,edespino/gpdb,xuegang/gpdb,Quikling/gpdb,Quikling/gpdb,xinzweb/gpdb,CraigHarris/gpdb,cjcjameson/gpdb,royc1/gpdb,ahachete/gpdb,xuegang/gpdb,0x0FFF/gpdb,kaknikhil/gpdb,50wu/gpdb,xinzweb/gpdb,lintzc/gpdb,rvs/gpdb,Chibin/gpdb,Quikling/gpdb,greenplum-db/gpdb,rvs/gpdb,janebeckman/gpdb,ashwinstar/gpdb,lisakowen/gpdb,Quikling/gpdb,lisakowen/gpdb,janebeckman/gpdb,rvs/gpdb,ahachete/gpdb,Chibin/gpdb,adam8157/gpdb,janebeckman/gpdb,lintzc/gpdb,rvs/gpdb,adam8157/gpdb,lintzc/gpdb,yuanzhao/gpdb,royc1/gpdb,rvs/gpdb,zaksoup/gpdb,lisakowen/gpdb,ashwinstar/gpdb,zaksoup/gpdb,cjcjameson/gpdb,lintzc/gpdb,lisakowen/gpdb,50wu/gpdb,zaksoup/gpdb,xinzweb/gpdb,chrishajas/gpdb,xuegang/gpdb,zaksoup/gpdb,zaksoup/gpdb,ashwinstar/gpdb,cjcjameson/gpdb,ahachete/gpdb,cjcjameson/gpdb,greenplum-db/gpdb,cjcjameson/gpdb,cjcjameson/gpdb,rvs/gpdb,lisakowen/gpdb,edespino/gpdb,ahachete/gpdb,ashwinstar/gpdb,janebeckman/gpdb,adam8157/gpdb,lintzc/gpdb,janebeckman/gpdb,edespino/gpdb,xuegang/gpdb,chrishajas/gpdb,xuegang/gpdb,greenplum-db/gpdb,greenplum-db/gpdb,adam8157/gpdb,0x0FFF/gpdb,CraigHarris/gpdb,CraigHarris/gpdb,0x0FFF/gpdb,Chibin/gpdb,rvs/gpdb,CraigHarris/gpdb,CraigHarris/gpdb,Quikling/gpdb,kaknikhil/gpdb,Quikling/gpdb,Chibin/gpdb,chrishajas/gpdb,kaknikhil/gpdb,yuanzhao/gpdb,xinzweb/gpdb,rvs/gpdb,0x0FFF/gpdb,0x0FFF/gpdb,Chibin/gpdb,50wu/gpdb,xuegang/gpdb,50wu/gpdb,lintzc/gpdb,jmcatamney/gpdb,0x0FFF/gpdb,janebeckman/gpdb,jmcatamney/gpdb,adam8157/gpdb,ashwinstar/gpdb,yuanzhao/gpdb,xinzweb/gpdb,yuanzhao/gpdb