From: Oliver Elphick <olly@lfix.co.uk>
From: Oliver Elphick <olly@lfix.co.uk>

If PQfn() receives NOTICEs from the backend, it fails because there is no
provision to deal with them.

This patch (supplied by Anders Hammarquist <iko@netg.se> to me as Debian
maintainer of postgresql) cures the problem:

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