Apply ljb's patch to prevent both memory leak and core dump during connection shutdown.  This is a grotty workaround for a Tcl bug, but said bug has been there long enough that I'm not holding my breath for a real fix.  Per discussions and testing from ljb and g.hintermayer.
Apply ljb's patch to prevent both memory leak and core dump during
connection shutdown.  This is a grotty workaround for a Tcl bug, but
said bug has been there long enough that I'm not holding my breath
for a real fix.  Per discussions and testing from ljb and g.hintermayer.

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