Fixes:
Fixes:

  This corrects the newline handling when using the readline library.

Submitted by: "Martin J. Laubach" <mjl@wwx.vip.at>

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