From: Phil Thompson <phil@river-bank.demon.co.uk>
From: Phil Thompson <phil@river-bank.demon.co.uk>

I haven't had final confirmation from Peter yet, but the attached patch
needs to be applied for the Beta otherwise password and crypt
authentication just won't work.

It puts back the loop in libpq and also fixes a couple of problems with
maintaining compatability with pre-6.3 drivers.

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